!function(){"use strict";var t,e,r,n,o,i,a,c,u,s={},l={};function f(t){var e=l[t];if(void 0!==e)return e.exports;var r=l[t]={exports:{}};return s[t](r,r.exports,f),r.exports}f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),f.rv=function(){return"1.3.15"},f.ruid="bundler=rspack@1.3.15",(t=a||(a={})).WINDOWS_PHONE="Windows Phone",t.ANDROID="android",t.IOS="ios",t.PC="pc",(e=c||(c={})).MUSICAL_LY="musical_ly",e.MUSICALLY_GO="musically_go",e.TRILL="trill",e.ULTRALITE="ultralite",e.LEMON8="lemon8",e.TTLINK="ttlink",(i={})[c.LEMON8]={},i[c.TTLINK]={},i[c.MUSICAL_LY]=((n={})[a.IOS]="33.4.0",n[a.ANDROID]="23.1.0",n),i[c.TRILL]=((o={})[a.IOS]="33.4.0",o[a.ANDROID]="23.1.0",o);var p=function(){return"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==f.g?f.g:Function("return this")()},h=function(){return p().TiktokAnalyticsObject||"ttq"},y=function(){return p()[h()]},d=function(t){try{var e=y()._plugins||{};if(null!=e[t])return!!e[t];return!0}catch(t){return!0}};function _(){_=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object.create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new E(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return N()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function y(){}var d={};u(d,i,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(T([])));g&&g!==e&&r.call(g,i)&&(d=g);var m=y.prototype=p.prototype=Object.create(d);function b(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function w(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function T(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function v(t,e,r){return(v=!function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}()?function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&g(o,r.prototype),o}:Reflect.construct.bind()).apply(null,arguments)}function g(t,e){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var m={error:[]};(r=u||(u={})).LOAD_START="load_start",r.LOAD_END="load_end",r.BEFORE_INIT="before_init",r.INIT_START="init_start",r.INIT_END="init_end",r.JSB_INIT_START="jsb_init_start",r.JSB_INIT_END="jsb_init_end",r.BEFORE_AD_INFO_INIT_START="before_ad_info_init_start",r.AD_INFO_INIT_START="ad_info_init_start",r.AD_INFO_INIT_END="ad_info_init_end",r.IDENTIFY_INIT_START="identify_init_start",r.IDENTIFY_INIT_END="identify_init_end",r.PLUGIN_INIT_START="_init_start",r.PLUGIN_INIT_END="_init_end",r.PIXEL_SEND="pixel_send",r.PIXEL_SEND_PCM="pixel_send_PCM",r.JSB_SEND="jsb_send",r.HTTP_SEND="http_send",r.HANDLE_CACHE="handle_cache",r.INIT_ERROR="init_error",r.PIXEL_EMPTY="pixel_empty",r.JSB_ERROR="jsb_error",r.API_ERROR="api_error",r.PLUGIN_ERROR="plugin_error",r.CUSTOM_INFO="custom_info",r.CUSTOM_ERROR="custom_error",r.CUSTOM_TIMER="custom_timer";try{(function(){if(/function bind\(\) \{[\s\S]*\[native code\][\s\S]*\}/.test(Function.prototype.bind.toString()))return!0;function t(){}return new(t.bind.apply(t,[void 0,1])) instanceof t})()&&!Function.prototype._ttq_bind?Object.defineProperty(Function.prototype,"_ttq_bind",{value:Function.prototype.bind,enumerable:!1,writable:!1,configurable:!1}):Function.prototype._ttq_bind||Object.defineProperty(Function.prototype,"_ttq_bind",{value:function(t){if("function"!=typeof this)throw TypeError("What is being called by bind is not a function.");var e=t||window,r=Array.prototype.slice.call(arguments).slice(1),n=Symbol("key");return e[n]=this,function t(){return this instanceof t?v(e[n],r.concat(Array.prototype.slice.call(arguments))):e[n].apply(e,r.concat(Array.prototype.slice.call(arguments)))}},enumerable:!1,writable:!1,configurable:!1}),Object._ttq_keys||(Object._ttq_keys=function(t){try{if(Array.isArray(t))return Object.keys(t).filter(function(t){return -1===["each","eachSlice","all","any","collect","detect","findAll","grep","include","inGroupsOf","inject","invoke","max","min","partition","pluck","reject","sortBy","toArray","zip","size","inspect","select","member","_reverse","_each","clear","first","last","compact","flatten","without","uniq","intersect","clone","toJSON","remove","swap","putAll"].indexOf(t)});return Object.keys(t)}catch(e){return Object.keys(t)}});var b=h();function w(t){return null===t?"NULL":void 0===t?"UNDEFINED":"[object Object]"===Object.prototype.toString.call(t)||"[object Array]"===Object.prototype.toString.call(t)?JSON.stringify(t):t.toString()}/function Map\(\) \{[\s\S]*\[native code\][\s\S]*\}/.test(Map.toString())?window[b]._ttq_map=Map:window[b]._ttq_map||(window[b]._ttq_map=function(){this.items={},this.size=0},window[b]._ttq_map.prototype.set=function(t,e){return!this.has(t)&&(this.items[w(t)]=e,this.size++),this},window[b]._ttq_map.prototype.get=function(t){return this.items[w(t)]},window[b]._ttq_map.prototype.has=function(t){return void 0!==this.items[w(t)]},window[b]._ttq_map.prototype.delete=function(t){return this.has(t)&&(delete this.items[w(t)],this.size--),this},window[b]._ttq_map.prototype.clear=function(){this.items={},this.size=0},window[b]._ttq_map.prototype.keys=function(){var t=_().mark(n),e=[];for(var r in this.items)this.has(r)&&e.push(r);function n(){return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(e,"t0",1);case 1:case"end":return t.stop()}},t)}return n()},window[b]._ttq_map.prototype.values=function(){var t=_().mark(n),e=[];for(var r in this.items)this.has(r)&&e.push(this.items[r]);function n(){return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(e,"t0",1);case 1:case"end":return t.stop()}},t)}return n()}),function(){if(/function create\(\) \{[\s\S]*\[native code\][\s\S]*\}/.test(Map.toString())){Object._ttq_create=Object.create;return}Object._ttq_create=function(){function t(){}var e=Object.prototype.hasOwnProperty;return function(r,n){if("object"!=typeof r&&"function"!=typeof r)throw TypeError("Object prototype may only be an Object or null");t.prototype=r;var o=new t;return t.prototype=null,null!=n&&Object.keys(n).forEach(function(t){var r=n[t];if("object"==typeof r&&null!==r)e.call(r,"value")?o[t]=r.value:("function"==typeof r.get||"function"==typeof r.set)&&Object.defineProperty(o,t,r);else throw TypeError("Property description must be an object: "+r)}),o}}()}()}catch(t){!function(t,e,r,n){void 0===r&&(r={}),void 0===n&&(n=!1);try{var o=y(),i=null==o.getPlugin?void 0:o.getPlugin("Monitor");i&&i.error&&"function"==typeof i.error?i.error.call(i,t,e,r,n):d("Monitor")&&m.error.push({event:t,err:e,detail:r,withoutJSB:n})}catch(t){}}(u.INIT_ERROR,t)}}();!function(){var t={278:function(t,e,r){t=r.nmd(t);var n,o="__lodash_hash_undefined__",i="[object Arguments]",a="[object Boolean]",c="[object Date]",u="[object Function]",s="[object GeneratorFunction]",l="[object Map]",f="[object Number]",p="[object Object]",h="[object Promise]",d="[object RegExp]",v="[object Set]",g="[object String]",y="[object Symbol]",_="[object WeakMap]",m="[object ArrayBuffer]",E="[object DataView]",b="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",I="[object Int16Array]",T="[object Int32Array]",S="[object Uint8Array]",R="[object Uint8ClampedArray]",N="[object Uint16Array]",x="[object Uint32Array]",L=/\w*$/,A=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,C={};C[i]=C["[object Array]"]=C[m]=C[E]=C[a]=C[c]=C[b]=C[w]=C[O]=C[I]=C[T]=C[l]=C[f]=C[p]=C[d]=C[v]=C[g]=C[y]=C[S]=C[R]=C[N]=C[x]=!0,C["[object Error]"]=C[u]=C[_]=!1;var k="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,D="object"==typeof self&&self&&self.Object===Object&&self,j=k||D||Function("return this")(),M=e&&!e.nodeType&&e,F=M&&t&&!t.nodeType&&t,U=F&&F.exports===M;function G(t,e){return t.set(e[0],e[1]),t}function q(t,e){return t.add(e),t}function H(t,e,r,n){var o=-1,i=t?t.length:0;for(n&&i&&(r=t[++o]);++o-1},tS.prototype.set=function(t,e){var r=this.__data__,n=tL(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},tR.prototype.clear=function(){this.__data__={hash:new tT,map:new(th||tS),string:new tT}},tR.prototype.delete=function(t){return tC(this,t).delete(t)},tR.prototype.get=function(t){return tC(this,t).get(t)},tR.prototype.has=function(t){return tC(this,t).has(t)},tR.prototype.set=function(t,e){return tC(this,t).set(t,e),this},tN.prototype.clear=function(){this.__data__=new tS},tN.prototype.delete=function(t){return this.__data__.delete(t)},tN.prototype.get=function(t){return this.__data__.get(t)},tN.prototype.has=function(t){return this.__data__.has(t)},tN.prototype.set=function(t,e){var r=this.__data__;if(r instanceof tS){var n=r.__data__;if(!th||n.length<199)return n.push([t,e]),this;r=this.__data__=new tR(n)}return r.set(t,e),this};var tD=ts?K(ts,Object):function(){return[]},tj=function(t){return tt.call(t)};function tM(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||X)}function tF(t){if(null!=t){try{return Z.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function tU(t,e){return t===e||t!=t&&e!=e}(tp&&tj(new tp(new ArrayBuffer(1)))!=E||th&&tj(new th)!=l||td&&tj(td.resolve())!=h||tv&&tj(new tv)!=v||tg&&tj(new tg)!=_)&&(tj=function(t){var e=tt.call(t),r=e==p?t.constructor:void 0,n=r?tF(r):void 0;if(n)switch(n){case t_:return E;case tm:return l;case tE:return h;case tb:return v;case tw:return _}return e});var tG=Array.isArray;function tq(t){var e;return null!=t&&"number"==typeof(e=t.length)&&e>-1&&e%1==0&&e<=0x1fffffffffffff&&!tV(t)}var tH=tl||function(){return!1};function tV(t){var e=tB(t)?tt.call(t):"";return e==u||e==s}function tB(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function tK(t){return tq(t)?function(t,e){var r,n,o,a,c,u=tG(t)||(o=n=r=t)&&"object"==typeof o&&tq(n)&&$.call(r,"callee")&&(!tc.call(r,"callee")||tt.call(r)==i)?function(t,e){for(var r=-1,n=Array(t);++r-1&&a%1==0&&a0||e._partner===t},R=function(t){try{var e=m()._plugins||{};if(null!=e[t])return!!e[t];return!0}catch(t){return!0}},N=function(){try{var t=m()._ppf;return null==t.printAndClear?void 0:t.printAndClear()}catch(t){}},x=function(){try{var t,e=m(),r=null==(t=e._container)?void 0:t.get(d.INTER_ID_SERVICE);if(r)return r.getInterId()||null}catch(t){P(a5.CUSTOM_ERROR,t,{custom_name:"getCurrentInterId"})}return null},L={info:[],error:[]};function A(t,e,r,n){void 0===e&&(e={}),void 0===r&&(r=!1),void 0===n&&(n=!1);try{var o=m(),i=null==o.getPlugin?void 0:o.getPlugin("Monitor");i&&i.info&&"function"==typeof i.info?i.info.call(i,t,e,r,n):R("Monitor")&&L.info.push({event:t,detail:e,withoutJSB:r,forceReport:n})}catch(t){}}function P(t,e,r,n){void 0===r&&(r={}),void 0===n&&(n=!1);try{var o=m(),i=null==o.getPlugin?void 0:o.getPlugin("Monitor");i&&i.error&&"function"==typeof i.error?i.error.call(i,t,e,r,n):R("Monitor")&&L.error.push({event:t,err:e,detail:r,withoutJSB:n})}catch(t){}}function C(t,e){try{var r=m(),n=null==r.getPlugin?void 0:r.getPlugin("DiagnosticsConsole");n&&n.warn.apply(n,[t,e])}catch(t){}}function k(){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var t={taskName:window.ttq._pf_tn,functionName:"getPixelDetail",start:performance.now()}}catch(t){}var e={lib:"ttq",pixelCode:"MOCK_SHOP_ID"};try{var r=document&&document.currentScript,n=r&&r.getAttribute("data-id")||"",o=_()||"ttq";e={pixelCode:n,lib:o}}catch(t){e={lib:"ttq",pixelCode:""}}try{window.ttq&&window.ttq._ppf&&(t.end=performance.now(),window.ttq._ppf.push(t))}catch(t){}return e}var D=function(){try{var t=m();if(!(t&&t._legacy&&0!==t._legacy.length))return!1;return Object.keys(t._t).length>Object.keys(t._legacy||[]).length||t.reporters.length>Object.keys(t._legacy||[]).length}catch(t){return!1}};function j(t){var e=Error(t);return e.source="ulid",e}(ao=a4||(a4={}))[ao.NOT_SURE=0]="NOT_SURE",ao[ao.INVOKE_METHOD_ENABLED=1]="INVOKE_METHOD_ENABLED",ao[ao.INVOKE_METHOD_NOT_ENABLED=2]="INVOKE_METHOD_NOT_ENABLED",(ai=a8||(a8={})).NORMAL="1",ai.NOT_CROSS_DOMAIN_IFRAME="2",ai.CROSS_DOMAIN_IFRAME="3",ai.WEB_WORKER="4",ai.SANDBOX_IFRAME="5",ai.GTM_IFRAME="6",ai.URL_IN_QUERY_IFRAME="7",ai.UNKNOWN_IFRAME="8";var M="0123456789ABCDEFGHJKMNPQRSTVWXYZ",F=M.length,U=(aa||(aa=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments[1];e||(e="undefined"!=typeof window?window:null);var n=e&&(e.crypto||e.msCrypto);if(n)return function(){var t=new Uint8Array(1);return n.getRandomValues(t),t[0]/255};try{var o=r(616);return function(){return o.randomBytes(1).readUInt8()/255}}catch(t){}if(t)return function(){return Math.random()};throw j("secure crypto unusable, insecure Math.random not allowed")}()),function(t){return isNaN(t)&&(t=Date.now()),function(t,e){if(isNaN(t))throw Error(t+" must be a number");if(t>0xffffffffffff)throw j("cannot encode time greater than 281474976710655");if(t<0)throw j("time must be positive");if(!1===Number.isInteger(t))throw j("time must be an integer");for(var r=void 0,n="";e>0;e--)r=t%F,n=M.charAt(r)+n,t=(t-r)/F;return n}(t,10)+function(t,e){for(var r="";t>0;t--)r=function(t){var e=Math.floor(t()*F);return e===F&&(e=F-1),M.charAt(e)}(e)+r;return r}(16,aa)});(ac=a9||(a9={})).EMPTY_VALUE="empty_value",ac.WRONG_FORMAT="wrong_format",ac.CORRECT_FORMAT="correct_format",ac.HASHED="hashed",ac.HASHED_ERR="hashed_err",ac.HASHED_CORRECT="hashed_correct",ac.PLAINTEXT_EMAIL="plaintext_email",ac.PLAINTEXT_PHONE="plaintext_phone",(au=a7||(a7={})).EMPTY_VALUE="empty_value",au.PLAIN_EMAIL="plain_email",au.PLAIN_PHONE="plain_phone",au.HASHED="hashed",au.FILTER_EVENTS="filter_events",au.UNKNOWN_INVALID="unknown_invalid",au.BASE64_STRING_HASHED="base64_string_hashed",au.BASE64_HEX_HASHED="base64_hex_hashed",au.PLAIN_MDN_EMAIL="plain_mdn_email",au.ZIP_CODE_IS_NOT_HASHED="zip_code_is_not_hashed",au.ZIP_CODE_IS_NOT_US="zip_code_is_not_us",au.ZIP_CODE_IS_HASHED="zip_code_is_hashed",au.ZIP_CODE_IS_US="zip_code_is_us",(as=ct||(ct={})).Manual="manual",as.ManualV2="manual_v2",as.Auto="auto",as.EBManual="eb_manual",(al=ce||(ce={})).empty="empty",al.whitespace="whitespace",al.hardcode="hardcode",al.encode="encode",(af=cr||(cr={})).letterCase="letter_case",af.isNotValidEmail="is_not_valid_email",af.isNotPossibleEmail="is_not_possible_email",af.domainTypo="domain_typo",af.addressFormat="address_format",(ap=cn||(cn={})).invalidCountry="invalid_country",ap.notANumber="not_a_number",ap.tooShort="too_short",ap.tooLong="too_long",ap.invalidLength="invalid_length",ap.emptyCountryCodeThroughIP="empty_country_code_through_ip",ap.invalidCountryAfterInjectPlus="invalid_country_after_inject_plus",ap.notANumberAfterInjectPlus="not_a_number_after_inject_plus",ap.tooShortAfterInjectPlus="too_short_after_inject_plus",ap.tooLongAfterInjectPlus="too_long_after_inject_plus",ap.invalidLengthAfterInjectPlus="invalid_length_after_inject_plus",ap.invalidCountryAfterInjectCountry="invalid_country_after_inject_country",ap.notANumberAfterInjectCountry="not_a_number_after_inject_country",ap.tooShortAfterInjectCountry="too_short_after_inject_country",ap.tooLongAfterInjectCountry="too_long_after_inject_country",ap.invalidLengthAfterInjectCountry="invalid_length_after_inject_country",(ah=co||(co={})).missing="missing",ah.valid="valid",ah.invalid="invalid";var G={raw_email:{label:co.missing},raw_auto_email:{label:co.missing},raw_phone:{label:co.missing},raw_auto_phone:{label:co.missing},hashed_email:{label:co.missing},hashed_phone:{label:co.missing},raw_eb_email:{label:co.missing},raw_eb_phone:{label:co.missing},hashed_eb_email:{label:co.missing},hashed_eb_phone:{label:co.missing}};(ad=ci||(ci={}))[ad.UNKNOWN=0]="UNKNOWN",ad[ad.HOLD=1]="HOLD",ad[ad.REVOKE=2]="REVOKE",ad[ad.GRANT=3]="GRANT";var q=["phone_number","email","external_id"],H={EMAIL_IS_HASHED:"email_is_hashed",PHONE_IS_HASHED:"phone_is_hashed",SHA256_EMAIL:"sha256_email",SHA256_PHONE:"sha256_phone"},V="auto_trigger_type";function B(){var t=Date.now();return("number"!=typeof t||isNaN(t)||!isFinite(t)||t<0)&&(t=new Date().getTime()),t}(av=ca||(ca={})).AUTO_CONFIG_CONTENT="auto_config_content",av.AUTO_CONFIG_FORM="auto_config_form",av.AUTO_CONFIG_CLICK="auto_config_click",av.EB_RULE_COMPUTE_TOKENIZE_TEXT="eb_rule_compute_tokenize_text",av.EB_RULE_COMPUTE_IMG_SRC="eb_rule_compute_img_src",av.EB_RULE_COMPUTE_ELEMENT_XPATH="eb_rule_compute_element_xpath",av.EB_PARAMETER_V2="eb_parameter_v2",av.EB_PARAMETER_V1="eb_parameter_v1";var K=function(t){return"[object Object]"===Object.prototype.toString.call(t)},Y=function(t){return t+"-"+B()+"-"+(Math.floor(Math.random()*(9e12-1))+1e12)},W=function(t,e,r){return void 0===r&&(r="-"),""+t+r+e};function J(t,e,r,n){void 0===e&&(e=500),void 0===r&&(r={trailing:!1});var o=0,i=null,a=null,c=n?t.bind(n):t,u=r.trailing;return function(){for(var t=B(),r=arguments.length,n=Array(r),s=0;s=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Q(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}var Z=function(t){return t},$=function(t){Z=t},tt=function(t){return Z(t)},te=function(t){return!!t},tr=function(t){return void 0!==t.metric_name},tn=function(t){return"CompletePayment"===t||"Purchase"===t},to=function(t){var e;return Object.keys((null==t||null==(e=t.context)?void 0:e.user)||{}).some(function(t){return -1!==q.indexOf(t)})};function ti(t,e){var r,n=t;return function(){if(n){for(var o=arguments.length,i=Array(o),a=0;a62?t+="-":t+="_",t},"")},tc=function(){for(var t=U(B());27!==t.length;)t.length>27?t=t.slice(0,27):t+="_";return t},tu=function(t,e){if(0===Object.keys(t).length)return{};var r={identity_params:{}},n={email:["email_is_hashed","sha256_email"],phone_number:["phone_is_hashed","sha256_phone"],zip_code:["zip_code"]};return Object.entries(e).forEach(function(e){var o=e[0];e[1]&&n[o]&&n[o].forEach(function(e){if(r.identity_params[e]=[a9.EMPTY_VALUE],t[e]){var n=t[e]||[a9.EMPTY_VALUE];r.identity_params&&(r.identity_params[e]=[].concat(n))}})}),r},ts=function(t,e){var r={identity_params:{}};return 0===Object.keys(t).length?{}:(Object.entries(e).forEach(function(e){var n=e[0];if(e[1])if(t[n]&&t[n].length){var o=t[n]||[a9.EMPTY_VALUE];r.identity_params[n]=[].concat(o)}else r.identity_params[n]=[a9.EMPTY_VALUE]}),r)};function tl(t,e){var r=Object.assign({},t);return e.forEach(function(t){null!==r[t]&&void 0!==r[t]&&delete r[t]}),r}var tf=function(t,e){if(!t)return{};var r={};return Object.keys(t).forEach(function(n){e[n]&&(r[n]=t[n])}),r};function tp(t,e,r){var n,o=r?t.bind(r):t;return function(){for(var t=arguments.length,r=Array(t),i=0;i-1){e=i;break}}try{window.ttq&&window.ttq._ppf&&(r.end=performance.now(),window.ttq._ppf.push(r))}catch(t){}return e},tE=function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var e={taskName:window.ttq._pf_tn,functionName:"getPixelInstalledPosition",start:performance.now()}}catch(t){}var r="unknown";try{var n=t&&tm(t);n&&(tb(n)&&(r="isInHead"),tO(n)&&(r="isInBodyTop10"))}catch(t){}try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}return r},tb=function t(e){var r=e.parentElement;return!!r&&("HEAD"===r.tagName||t(r))},tw=function(t,e){for(var r=[document.body],n=0;n<=t&&r.length;){var o,i=r.pop();if(i===e)return!0;if(!((null==i?void 0:i.tagName.toLowerCase())==="script"&&(null==(o=i.src)?void 0:o.indexOf("analytics.tiktok.com"))>-1)){if(n++,"object"==typeof i&&i.children)for(var a=i.children.length-1;a>=0;a--)r.push(i.children[a])}}return!1},tO=function(t){return tw(10,t)},tI=/function WeakSet\(\) \{[\s\S]*\[native code\][\s\S]*\}/.test(WeakSet.toString()),tT=/function WeakMap\(\) \{[\s\S]*\[native code\][\s\S]*\}/.test(WeakMap.toString());/function Date\(\) \{[\s\S]*\[native code\][\s\S]*\}/.test(Date.toString());var tS=function(t,e,r){var n=Object.getPrototypeOf(t);"proto"===r&&n&&"function"==typeof n[e]&&(n[e]=function(){}),"instance"===r&&t&&"function"==typeof t[e]&&(t[e]=function(){})};(ag=cc||(cc={})).EXTERNAL="external",ag.APP="app",ag.TIKTOK="tiktok";var tR={ID:Symbol.for("ID"),Type:Symbol.for("type"),Partner:Symbol.for("partner"),Options:Symbol.for("Options"),Plugins:Symbol.for("Plugins"),Rules:Symbol.for("Rules"),Info:Symbol.for("Info"),ExtraParams:Symbol.for("extraParams"),WebLibraryInfo:Symbol.for("WebLibraryInfo"),SignalType:Symbol.for("SignalType"),IsOnsitePage:Symbol.for("IsOnsitePage")};(ay=cu||(cu={}))[ay.OFFSITE=0]="OFFSITE",ay[ay.ONSITE=1]="ONSITE";var tN=function(){var t,e;return(null==(t=m())||null==(e=t._env)?void 0:e.env)||cc.EXTERNAL},tx=function(){var t,e;return null!=(t=null==(e=m())?void 0:e._is_onsite)?t:cu.OFFSITE},tL=function(t){return(t||tN())!==cc.EXTERNAL},tA=function(t){return(t||tN())===cc.TIKTOK},tP=function(){var t=w();return/windows phone/i.test(t)?a3.WINDOWS_PHONE:/android/i.test(t)?a3.ANDROID:/iPad|iPhone|iPod/.test(t)?a3.IOS:a3.PC},tC=function(){try{return navigator.userAgentData.getHighEntropyValues(["model","platformVersion"])}catch(t){return Promise.resolve({})}},tk=function(){return"android"===tP()},tD=function(){return"ios"===tP()},tj=function(){return!1},tM=function(){return window.top!==window},tF=ti(function(){return/open_news/i.test(w())}),tU=ti(function(){return/ultralite/i.test(w())}),tG=function(){try{return window&&window.top&&window.top.location.href,!1}catch(t){return!0}},tq=function(){try{var t=new URL(decodeURIComponent(window.location.href)),e=/https?:\/\/[^\s/$.?#].[^\s]*/i;return e.test(t.search)||e.test(t.pathname)}catch(t){return!1}},tH=function(){try{if(!tG())return a8.NOT_CROSS_DOMAIN_IFRAME;if(tq())return a8.URL_IN_QUERY_IFRAME;if(window.google_tag_manager)return a8.GTM_IFRAME;if(window.name&&"web-pixel-sandbox"===window.name)return a8.SANDBOX_IFRAME;return a8.CROSS_DOMAIN_IFRAME}catch(t){return a8.UNKNOWN_IFRAME}},tV=function(){return E()?a8.WEB_WORKER:tM()?tH():a8.NORMAL},tB=function(){var t=w();if(t)for(var e=0,r=Object.values(a6);ea)return!1}return!0},tz=function(t){var e=tB();return void 0!==e&&t.has(e)},tQ=function(){var t=y();try{return!!(t.Shopify&&t.Shopify.shop&&t.Shopify.shop.indexOf(".myshopify.com")>0||t.name&&t.name.startsWith("web-pixel-sandbox-CUSTOM-shopify"))}catch(t){}return!1},tZ=function(){var t=m();return"object"==typeof t&&t._i?t._i:{}},t$=function(t,e){var r=tZ()||{};Object.keys(r).forEach(function(n){var o=r[n];o._init||o.push([t].concat(e))})},t0=function(t,e,r){var n=(tZ()||{})[t];if(n){if(n._init)return;n.push([e].concat(r))}},t1=function(t,e,r,n){try{var o,i=m(),a=null==(o=i._container)?void 0:o.get(d.EVENT_EMITTER);if(!a)throw Error("EventEmitter is not found - addEventListener");n&&a.setObserverConfig(n);var c=r.throttle,u=r.interval;a.on(t,e,{throttle:c,interval:u})}catch(e){P(a5.CUSTOM_ERROR,e,{custom_name:"addEventListener",custom_enum:t})}},t2=function(t){try{var e,r=m(),n=null==(e=r._container)?void 0:e.get(d.EVENT_EMITTER);if(!n)throw Error("EventEmitter is not found - emitEvent");for(var o=arguments.length,i=Array(o>1?o-1:0),a=1;a-1&&setTimeout(function(){A(a5.CUSTOM_INFO,{pixelCode:a,custom_name:e})}),t[e].apply(t,r)}catch(t){return P(a5.API_ERROR,t,{extJSON:{api:e}}),{}}}},set:function(){}})}),t3.forEach(function(e){Object.defineProperty(o,e,{get:function(){return function(){try{var r=1==arguments.length&&void 0===arguments[0]?[]:Array.prototype.slice.call(arguments);return t$(e,r),t[e].apply(t,r)}catch(t){return P(a5.API_ERROR,t,{extJSON:{api:e}}),{}}}},set:function(){}})}),r[n]._mounted=!0,r[n].initialize=!0,g(r[n]);try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}},ei=function(t,e,r){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var n={taskName:window.ttq._pf_tn,functionName:"handleCache",start:performance.now()}}catch(t){}t2(cp.HANDLE_CACHE),ea(e),Object.entries(t9()).forEach(function(n){var o=n[0],i=n[1];if(!i._init&&("Tealium"===T(o)||b()||i.info)&&(e.getReporter(o)?C(cy.DUPLICATE_PIXEL_CODE):(r||et)(t,{id:o,type:cs.PIXEL_CODE,info:i.info,options:i.options,rules:i.rules,plugins:i.plugins}),i._init=!0,i.length>0))for(;i.length;){var a=i.shift();if(a){var c=a[0],u=a.slice(1),s=e.instance(o);if(s)switch(c){case"identify":s.identify(u[0],u[1]);break;case"page":e.page(u[0]);break;case"track":s.track(u[0],u[1],u[2]||{});break;default:s[c]?s[c](u[0],u[1],u[2]||{}):P(a5.CUSTOM_ERROR,Error("action not find: "+c))}}}}),ec(e);try{window.ttq&&window.ttq._ppf&&(n.end=performance.now(),window.ttq._ppf.push(n))}catch(t){}},ea=function(t){try{var e=m();[].concat(t6,t5).forEach(function(r){e.find(function(n,o){var i=n[0],a=n.slice(1);if(i===r)return t[r].apply(t,a),e.splice(o,1),!0})})}catch(t){P(a5.API_ERROR,t,{extJSON:{api:"handleP0APICache"}})}},ec=function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var e={taskName:window.ttq._pf_tn,functionName:"handleGlobalCache",start:performance.now()}}catch(t){}var r=m();if(r.length>0)for(;r.length;){var n=r.shift();if(n){var o=n[0],i=n.slice(1);switch(!S("Tealium")&&t$(o,i),o){case"identify":t.identify(i[0],i[1]);break;case"page":t.page(i[0]);break;case"track":t.track(i[0],i[1],i[2]||{});break;case"enableCookie":t.enableCookie();break;case"disableCookie":t.disableCookie();break;case"holdConsent":t.holdConsent();break;case"revokeConsent":t.revokeConsent();break;case"grantConsent":t.grantConsent()}}}try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}};function eu(t,e,r){return(eu=!function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}()?function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&es(o,r.prototype),o}:Reflect.construct.bind()).apply(null,arguments)}function es(t,e){return(es=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var el="_ttq_inject",ef=function(){function t(){this.bindings={},this.rebind=this.bind}var e=t.prototype;return e.bind=function(t){var e=this;return{to:function(r){return e.bindings[t.toString()]={constructor:r,singleton:!1},e},toConstantValue:function(r){return e.bindings[t.toString()]={value:r,singleton:!0},e}}},e.isBound=function(t){return!!this.bindings[t.toString()]},e.inSingletonScope=function(){var t=Object.keys(this.bindings),e=t[t.length-1];if(e){var r=this.bindings[e];r&&(this.bindings[e]=Object.assign(Object.assign({},r),{singleton:!0}))}return this},e.get=function(t){var e=this.bindings[t.toString()];if(!e)throw Error("No binding found for identifier: "+String(t));return void 0!==e.value?e.value:e.singleton?(e.instance||(e.instance=this.createInstance(e.constructor)),e.instance):this.createInstance(e.constructor)},e.createInstance=function(t){var e=this;if(!t)throw Error("Cannot create instance because constructor is not defined.");var r=(t[el]||[]).map(function(t){try{return e.get(t.identifier)}catch(e){if(t.optional)return;throw e}});return eu(t,r)},t}();function ep(){return function(t){}}function eh(t){return function(e,r,n){e[el]=e[el]||[],e[el][n]=Object.assign({},e[el][n],{identifier:t})}}function ed(){return function(t,e,r){t[el]=t[el]||[],t[el][r]=Object.assign({},t[el][r],{optional:!0})}}(aS=c_||(c_={})).BIND="bind",aS.REBIND="rebind";var ev={cachedReferrer:"",cachedTitle:"",cachedHref:"",timer:null};function eg(t,e){try{var r=new URL(t),n=r.searchParams.getAll(e);if(0!==n.length)return n[n.length-1]||"";return new URLSearchParams(r.hash).get(e)||""}catch(t){return""}}var ey=function(t,e,r){try{var n=eg(e,t);if(n)return n;return eg(r||"",t)}catch(t){}return""};function e_(){ev.cachedHref=window.location.href,ev.cachedReferrer=document.referrer,ev.cachedTitle=document.title,ev.timer&&clearTimeout(ev.timer),ev.timer=setTimeout(function(){ev.cachedHref="",ev.cachedReferrer="",ev.cachedTitle="",ev.timer=null},3e3)}var em=function(){if(!tM())return(window.location.href!==ev.cachedHref||null===ev.timer)&&e_(),{url:ev.cachedHref,referrer:ev.cachedReferrer,title:ev.cachedTitle};if(!tG()){var t,e,r,n,o,i;return{url:(null==(t=window)||null==(e=t.top)?void 0:e.location.href)||"",referrer:(null==(r=window)||null==(n=r.top)?void 0:n.document.referrer)||"",title:(null==(o=window)||null==(i=o.top)?void 0:i.document.title)||""}}if((null===ev.timer||window.location.href!==ev.cachedHref)&&e_(),/doubleclick\.net/.test(window.location.hostname)){var a=window.location.pathname,c={};return a.split(";").forEach(function(t){var e=t.split("="),r=e[0],n=e[1];r&&n&&(c[r]=decodeURIComponent(n))}),{url:c["~oref"]||ev.cachedHref,referrer:ev.cachedReferrer,title:ev.cachedTitle}}return{url:ev.cachedHref,referrer:ev.cachedReferrer,title:ev.cachedTitle}},eE=function(t){var e=em().url;try{return new URL(t||e)}catch(t){}return null},eb=function(t){var e;return(null==t||null==(e=t.localServiceConfig)?void 0:e.key)||p},ew=function(t){try{var e=window.sessionStorage.getItem(t);if(!e)return null;return JSON.parse(e)}catch(t){return null}},eO=function(t){try{window.sessionStorage.removeItem(t)}catch(t){}},eI=function(t,e){try{var r=JSON.stringify(e);window.sessionStorage.setItem(t,r)}catch(t){}},eT="https://analytics.tiktok.com/api/v2",eS=eT+"/pixel",eR=eT+"/performance",eN=eT+"/interaction",ex=eT+"/performance_interaction",eL=eT+"/pixel/perf",eA=eT+"/pixel/inter",eP=eT+"/pixel/act",eC=eT+"/monitor",ek="https://analytics-ipv6.tiktokw.us/ipv6/enrich_ipv6",eD="ttclid",ej="_toutiao_params",eM=function(t,e){try{var r=ey(eD,t,e)||void 0,n=ey("ext_params",t,e)||void 0,o=ey(ej,t,e)||void 0,i=parseInt(ey("ttuts",t,e),10)||void 0,a=o?JSON.parse(o):{},c=a.log_extra,u=void 0===c?void 0:c,s=a.idc,l=void 0===s?void 0:s,f=a.cid,p=void 0===f?void 0:f;return{callback:r,ext_params:n,log_extra:u,creative_id:p,idc:l,ttuts:i,ad_info_from:(u||l||p)&&"url"}}catch(t){return{}}},eF=function(t,e){try{var r=t.log_extra,n=t.ttuts;if(!tD())return!0;if(!tA(e)){if(null!=n)return 1!==n;return!0}if(r){var o=JSON.parse(r);return 1!==o.user_tracking_status}if(null===t.ATTStatus||void 0===t.ATTStatus)return!0;return 3===t.ATTStatus}catch(t){return!1}},eU=function(t,e){var r={};try{var n=t.creative_id,o=(t.callback,t.idc),i=t.convert_id,a=t.ad_info_from,c=t.ad_info_status,u=t.log_extra,s=t.ext_params,l=t.ATTStatus;if(n&&(r.creative_id=n),o&&(r.idc=o),i&&(r.convert_id=i),a&&(r.ad_info_from=a),c&&(r.ad_info_status=c),s&&(r.ext_params=s),l&&(r.ATTStatus=l),u){var f=JSON.parse(u),p=f.ad_user_agent,h=f.ad_id,d=f.rit,v=f.ocbs,g=f.vid,y=f.idc,_=f.country_id;h&&(r.ad_id=h),d&&(r.rit=d),p&&(r.ad_user_agent=p),v&&(r.ocbs=v),g&&(r.vid=g),y&&(r.idc=y),_&&(r.country_id=_)}return r}catch(t){return e&&e(t),r}},eG=function(t){void 0===t&&(t={});var e=Object.assign({},{path:"/"},t);"number"==typeof e.expires&&(e.expires=new Date(B()+864e5*e.expires)),e.expires instanceof Date&&(e.expires=e.expires.toUTCString());var r="";for(var n in e)e[n]&&(r+="; "+n,!0!==e[n]&&(r+="="+e[n].split(";")[0]));return r},eq=function(t,e,r,n){void 0===r&&(r="/"),void 0===n&&(n=new Date(B()+864e5).toUTCString()),eJ(t,e,{path:r,expires:n})},eH=function(t){return t&&t.cde?Object.assign({},f,{expires:t.cde}):f},eV=function(){var t=eW(a);if(t&&ez(t)){var e=eQ(),r=window.location.hostname.split("."),n="."+r.slice(r.length-e-1).join(".");return null!=n?n:void 0}},eB=0,eK=0,eY=function(t){var e={};return document.cookie.split(";").forEach(function(t){var r=t.split("=");e[r[0].trim()]=r.slice(1).join("=")}),e[t]||""},eW=function(t){if(0===document.cookie.length)return"";var e=eY(t);return e?unescape(e):""},eJ=function(t,e,r){try{if(r){var n=window.location.hostname.split(".");if(eK=n.length,(eB=eQ())&&eB=3&&e.includes("tt")&&!isNaN(Number(e[2]))&&Number(e[2])>0},eQ=function(){if(eB)return eB;var t=eW(a);return t&&ez(t)?Number(t.split(".")[2]):0},eZ=function(t,e,r){var n;return t!==a||ez(e)||(e=(n=e)?n.split(".")[0]+".tt."+(tQ()?0:eQ()):""),document.cookie=t+"="+e+eG(r),e===eW(t)},e$=function(t,e,r){void 0===t&&(t=""),void 0===e&&(e="");try{var n=ey("tt_test_id",t,r);return n&&n!==e&&eq("tt_test_id",n,void 0,"session"),n||e}catch(t){return""}};function e0(){return(e0=Object.assign?Object.assign.bind():function(t){for(var e=1;e18e5?{sessionId:o.toString()+"::"+ta(20),sessionCount:r+1,lastEventTS:o,isSessionStart:!0}:e0({},t,{lastEventTS:e===cm.INTER_ID_TRIGGER?n:o,isSessionStart:!1})},e5=function(t){var e=t.sessionId,r=t.sessionCount,n=t.lastEventTS,o=t.hasReportedES,i=t.inter_id;return e+"."+r+"."+n+"."+(null!=o?o:0)+(i?"::"+i:"")},e4=function(t,e,r){var n=t||{},o=n.sessionId,i=n.sessionCount,a=n.isSessionStart;return Object.assign({csid:void 0===o?"":o,page_csid:e?e.sessionId:"",csct:void 0===i?1:i},void 0!==a&&a?{css:1}:{},r?{pixel_code:r}:{})},e8=function(){function t(t){this.pixelCode="",this.loaded=!1,this.status=1,this.name="",this.advertiserID="",this.setupMode=0,this.partner="",this.reporterInfo={},this.plugins={},this.options={},this.rules=[],this.pixelCode=t}var e=t.prototype;return e.getParameterInfo=function(){return Promise.resolve({pixelCode:this.pixelCode,name:this.name,status:this.status,setupMode:this.setupMode,advertiserID:this.advertiserID,partner:this.partner,is_onsite:!1,advancedMatchingAvailableProperties:{}})},e.getReporterId=function(){return""},e.getReporterUniqueLoadId=function(){return""},e.getReporterPartner=function(){},e.getReporterInfo=function(){return{reporter:{}}},e.getReportResultSet=function(){return[]},e.isOnsite=function(){return!1},e.isPartnerReporter=function(){return!1},e.setAdvancedMatchingAvailableProperties=function(t){},e.clearHistory=function(){},e.page=function(t){},e.identify=function(t,e){},e.track=function(t,e,r){return Promise.resolve(null)},e.getUserInfo=function(t){return{}},e.getReporterMatchedUserFormatInfo=function(){return{}},e.getReporterMatchedUserFormatInfoV2=function(){return{}},e.assemblyData=function(){return{event:"",message_id:"",event_id:"",is_onsite:!1,properties:{},context:{ad:{},device:{},library:{name:"",version:""},page:{url:""},pageview_id:"",session_id:"",variation_id:"",user:{}},partner:"",timestamp:""}},e.assemblySelfHostData=function(){return this.assemblyData()},e.trackSync=function(){},e.getReportEventHistoryKey=function(t){return"tiktok"},e.hasReportEventHistory=function(t,e){return!1},e.getCookieBasedSession=function(){return e2()},e.setCookieBasedSession=function(t){},t}();new e8("empty");var e9=function(){function t(t,e,r,n){this.initialize=!1,this.plugins=[],this.observers=[],this.reporters=[],this.context=t,this.reportService=e,r&&(this.emitter=r),n&&(this.sensitiveRedactor=n)}var e=t.prototype;return e.init=function(t,e){this.initContextInfo(t,e),this.initialize=!0},e.initContextInfo=function(t,e){var r=this;this.dispatch(cd.CONTEXT_INIT_START),this.initAdInfo(t,e),this.initAppInfo(t,e),this.initLocalServiceInfo(),this.reportService.pushPreposition(Promise.resolve().then(function(){return r.initUserInfo()})),this.initTestId(t,e),this.dispatch(cd.CONTEXT_INIT_END)},e.setPageIndex=function(t){},e.setPageInfo=function(t,e){var r=this.context.getPageInfo().url;if(r!==t){this.dispatch(cd.PAGE_URL_WILL_CHANGE,e||r,t);var n=this.context.setPageInfo(t,e||r);(null==n?void 0:n.pageIndex)&&this.setPageIndex(n.pageIndex),this.dispatch(cd.PAGE_URL_DID_CHANGE,t,r)}},e.initAdInfo=function(t,e){},e.initOffsiteAdInfo=function(t){},e.initAppInfo=function(t,e){},e.initUserInfo=function(){},e.initTestId=function(t,e){},e.usePlugin=function(t){try{if(!this.plugins.find(function(e){return e.name===t.name})){this.plugins.push(t);var e=t.name;e&&(this[e[0].toLowerCase()+e.slice(1)+"Plugin"]=t)}}catch(t){}},e.useObserver=function(t){try{if(!this.observers.find(function(e){return e.name===t.name})){this.observers.push(t);var e=t.name;e&&(this[""+(e[0].toLowerCase()+e.slice(1))]=t)}}catch(t){}},e.getPlugin=function(t){return this.plugins.find(function(e){return e.name===t})||null},e.getReporter=function(t){return this.reporters.find(function(e){return e.getReporterId()===t})},e.instance=function(t){var e=this.getReporter(t);return e||(P(a5.PIXEL_EMPTY,Error(""),{pixelCode:t}),new e8(t))},e.instances=function(){return this.reporters},e.identify=function(t,e){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var r={taskName:window.ttq._pf_tn||"identify_api_handler",functionName:window.ttq._pf_tn&&"identify_api_handler",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="identify_api_handler")}}catch(t){}var n=t_(t,e);this.context.setUserInfo(n);try{window.ttq&&window.ttq._ppf&&(r.end=performance.now(),window.ttq._ppf.push(r),"identify_api_handler"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}},e.page=function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var e={taskName:window.ttq._pf_tn||"page_api_handler",functionName:window.ttq._pf_tn&&"page_api_handler",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="page_api_handler")}}catch(t){}t.url!==this.context.getPageInfo().url&&(this.setPageInfo(t.url,t.referrer),this.reporters.forEach(function(t){t.clearHistory()}));var r=Object.assign({},t);delete r.url,delete r.referrer,this.reporters.forEach(function(t){t.page(r)});try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e),"page_api_handler"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}},e.isOnsitePage=function(){return this.context.getSignalType()===cu.ONSITE||this.reporters.every(function(t){return t.isOnsite()})},e.track=function(t,e,r){void 0===e&&(e={}),void 0===r&&(r={});try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var n={taskName:window.ttq._pf_tn||"track_api_handler",functionName:window.ttq._pf_tn&&"track_api_handler",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="track_api_handler")}}catch(t){}this.instances().forEach(function(n,o){n.track(t,e,Object.assign({_i:o},r))});try{window.ttq&&window.ttq._ppf&&(n.end=performance.now(),window.ttq._ppf.push(n),"track_api_handler"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}},e.dispatch=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function rt(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}e9=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([ep()],e9);var re=(aN=e7().mark(function t(e,r){return e7().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===r&&(r=1),!(r>=0)){t.next=13;break}return t.prev=2,t.next=5,function(t){return new Promise(function(e,r){var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src=t;var o=document.getElementsByTagName("script")[0];o&&o.parentNode?o.parentNode.insertBefore(n,o):r("none element"),n.onload=function(){e(!0)},n.onerror=r})}(e);case 5:return t.abrupt("return",Promise.resolve(!0));case 8:return t.prev=8,t.t0=t.catch(2),t.abrupt("return",re.call(null,e,r-1));case 11:t.next=14;break;case 13:throw Error;case 14:case"end":return t.stop()}},t,null,[[2,8]])}),ax=function(){var t=this,e=arguments;return new Promise(function(r,n){var o=aN.apply(t,e);function i(t){rt(o,r,n,i,a,"next",t)}function a(t){rt(o,r,n,i,a,"throw",t)}i(void 0)})},function(t,e){return ax.apply(this,arguments)});(aL=cE||(cE={})).TRACK="track",aL.PERFORMANCE="performance",aL.INTERACTION="interaction",aL.PCM="PCM",aL.PERFORMANCE_INTERACTION="performance_interaction",aL.SELFHOST="selfhost",aL.AUTO_CONFIG="auto_config",aL.PAGE="Pf",aL.PAGE_PERFORMANCE="page_performance",aL.PAGE_INTERACTION="page_interaction";var rr=["EnrichAM"];function rn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r1?r-1:0),o=1;o=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([ep()],rs);var rl=function(t,e){if("selfhost"===t&&e&&O(e))return"https://"+O(e)+"/api/v2/pixel";var r={track:eS,performance:eR,interaction:eN,performance_interaction:ex,auto_config:eP,page_performance:eL,page_interaction:eA}[t];return r||null};function rf(){return(rf=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([ep()],rh);var rd={ViewForm:"ViewContent",ViewConsultationPage:"ViewContent",ViewDownloadPage:"ViewContent",Checkout:"PlaceAnOrder",Registration:"CompleteRegistration",AddBilling:"AddPaymentInfo",StartCheckout:"InitiateCheckout",ClickInDownloadPage:"ClickButton",ClickInConsultationPage:"ClickButton",ClickForm:"ClickButton",ClickToDownload:"Download",Consult:"Contact",ConsultByPhone:"Contact",CompletePayment:"Purchase",SubmitForm:"Lead"},rv=["event_experiment","dynamic_parameter_config","eb_version","eb_rule_id","tf","trigger_source","inter_id"],rg=function(t){var e=t.getUserInfo().anonymous_id,r=eW(a);e!==r&&t.setUserInfoWithoutIdentifyPlugin({anonymous_id:r})},ry=function(t,e,r){try{var n=window.location.hostname.split(".");if(void 0!==cI&&cI=0;o--){var i="."+n.slice(o).join(".");if(document.cookie=t+"="+e+eG(Object.assign({},r,{domain:i})),eW(t)===e){cI=o;break}}}catch(t){}},r_=function(t,e,r,n){void 0===n&&(n=cm.ORIGIN_TRIGGER);var o=e2();return e&&(o=e6(e,n)),ry(t?s+"_"+t:s,e5(o),eH(r)),o},rm=new Set([",","?",";","!","、",",","。","?",";","!",":",":"," "]);(ak=cS||(cS={})).ID_SSN="ID_SSN",ak.PASSPORT="PASSPORT",ak.DRIVING_LICENSE="DRIVING_LICENSE",ak.PHONE="PHONE",ak.EMAIL="EMAIL",ak.CREDIT_CARD="CREDIT_CARD",ak.RACE_ETHNIC="RACE_ETHNIC",ak.RELIGION="RELIGION",ak.SEXUAL_ORIENTATION="SEXUAL_ORIENTATION",ak.POLITICAL_AFFILIATION="POLITICAL_AFFILIATION",ak.UNION_MEMBERSHIP="UNION_MEMBERSHIP",ak.CRIMINAL_RECORD="CRIMINAL_RECORD",ak.DEFAULT="***";var rE=((cT={})[cS.RACE_ETHNIC]=["asian","black","white","caucasian","hispanic","latino","arab","middle eastern","african american","native american","indigenous","pacific islander","jewish","afro","mulatto","mestizo","racial","ethnicity","ethnic group"],cT[cS.RELIGION]=["christian","catholic","protestant","baptist","orthodox","muslim","islam","islamic","sunni","shia","jewish","judaism","synagogue","hebrew","hindu","hinduism","vedic","bhagavad","buddhist","buddhism","taoism","shinto","atheist","agnostic","secular","religious belief"],cT[cS.SEXUAL_ORIENTATION]=["heterosexual","homosexual","bisexual","pansexual","gay","lesbian","lgbt","lgbtq","queer","asexual","sexual orientation","gender identity","trans","transgender","nonbinary","non-binary"],cT[cS.POLITICAL_AFFILIATION]=["democrat","democratic","republican","libertarian","conservative","liberal","progressive","nationalist","communist","socialism","socialist","marxist","left-wing","right-wing","maga","antifa","alt-right","green party","political party","political ideology"],cT[cS.UNION_MEMBERSHIP]=["labor union","trade union","union member","collective bargaining","strike","unionized","organized labor","workers' union","teamsters","AFL-CIO","IBEW","union dues","union card"],cT[cS.CRIMINAL_RECORD]=["arrest","arrested","convicted","conviction","felony","felon","misdemeanor","parole","probation","criminal record","jail","prison","inmate","suspect","indictment","charged with","mugshot"],cT),rb=Object.values(cS).reduce(function(t,e){return t[e]="<#"+e+"#>",t},{}),rw={prefix:"(?|[^>]*<))"},rO=rx(["(?:\\+?\\d{1,3}[\\s-]?|\\(\\+?\\d{1,3}\\)[\\s-]?)?(?:\\d{2,4}[\\s-]?|\\(\\d{2,4}\\)[\\s-]?)?(?:\\d[\\s-]?){5,}"],rw,"g"),rI=rx(["([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\\.[a-zA-Z0-9._-]+)"],rw,"gi"),rT=rx(["(?:(?:4[0-9]{3}|5[1-5][0-9]{2}|6011|65[0-9]{2}|3[47][0-9]{2}|3(?:0[0-5]|[68][0-9])|2131|1800|35\\d{2})[-\\s]?(?:[0-9]{4}[-\\s]?){2}[0-9]{3,4}|62[0-9]{3}[-\\s]?(?:[0-9]{4}[-\\s]?){2,3}[0-9]{3,4})$(?![\\d])"],rw,"g"),rS=rx(["\\d{3}-\\d{2}-\\d{4}|\\d{9}","\\d{17}(\\d|X|x)$","[A-CEGHJ-PR-TW-Z]{2}\\d{6}[A-D]?","(?:[A-Z]\\d{10}|\\d{10})","[A-Z0-9]{12}"],rw,"g"),rR=rx(["[EDS]\\d{8}","[A-HJ-NP-Z][A-HJ-NP-Z0-9]{8}","[A-Z]{2}\\d{6}"],rw,"g"),rN=rx(["\\d{17}[\\dXx]","[A-Z0-9]{16}","[A-Z0-9]{10,12}","[A-Z0-9]{12}"],rw,"g");function rx(t,e,r){return void 0===e&&(e={prefix:"",suffix:""}),void 0===r&&(r=""),t.map(function(t){try{var n,o,i,a=new RegExp(t,r),c=a.source;if(c.startsWith("^")&&c.endsWith("$"))return a;return n=a,o=e.prefix,i=e.suffix,void 0===o&&(o=""),void 0===i&&(i=""),RegExp(""+o+n.source+i,n.flags)}catch(t){return/[]/}})}function rL(t,e){return(rL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var rA=function(t){function e(e){var r,n,o=e.id,i=e.type,a=e.isOnsitePage,c=e.context,u=e.reporterInfo,s=e.ttqOptions,l=e.reportService,f=e.plugins,p=e.rules,h=e.options;return(n=t.call(this,c,l)||this).ttp="",n.loaded=!1,n.id=o,n.pixelCode=o,n.type=i,n.isOnsitePage=a,n.options=(void 0===h?{}:h)||{},n.plugins=(void 0===f?{}:f)||{},n.rules=(void 0===p?[]:p)||[],n.reporterInfo=Object.assign(u||{},((r={})[i]=o,r)),n.ttp=s.ttp||"",n.currency_list=s.currency_list||null,n.ttqPartner=s.partner||"",n.selfHostConfig=s.self_host_config||{},n.ttqOptions=s,n.pixelPromise=n.getInstance(),n}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,rL(e,t);var r=e.prototype;return r.identify=function(t,e){var r=t_(t,e);this.context.setUserInfo(r,Object.assign({reporterId:this.id},(null==e?void 0:e.trigger_source)&&{trigger_source:e.trigger_source}))},r.getReporterId=function(){return this.id||""},r.getReporterUniqueLoadId=function(){return this.reporterInfo.loadId+"-"+this.getReporterId()},r.getReporterPartner=function(){var t;return(null==(t=this.reporterInfo)?void 0:t.partner)||""},r.setPixelInfo=function(t,e,r){var n,o=this.type;this.reporterInfo=Object.assign(this.reporterInfo,Object.assign({},t),((n={})[o]=this.getReporterId(),n)),e&&(this.rules=e),r&&(this.plugins=r)},r.getInstance=function(){return Promise.resolve(this)},r.getReporterInfo=function(){return this.reporterInfo.pixelCode?t.prototype.getReporterInfo.call(this):{shop_id:this.reporterInfo.shopId,eventSourceId:this.reporterInfo.eventSourceId}},r.getUserInfo=function(t){var e=this.context.getUserInfo(),r=tf(e,Object.assign({},this.advancedMatchingAvailableProperties));switch(t){case ct.Manual:return tf(this.isPartnerReporter()?r:e,{external_id:!0,email:!0,phone_number:!0,ttoclid:!0});case ct.ManualV2:return tf(this.isPartnerReporter()?r:e,{first_name:!0,last_name:!0,city:!0,state:!0,country:!0,zip_code:!0,partner_id:!0,ttoclid:!0});case ct.EBManual:return tf(e,{eb_email:this.advancedMatchingAvailableProperties.auto_email,eb_phone_number:this.advancedMatchingAvailableProperties.auto_phone_number});case ct.Auto:var n=tf(r,{external_id:!0,auto_email:!0,auto_phone_number:!0,ttoclid:!0});return Object.assign(n,(n.auto_email||n.auto_phone_number)&&e.auto_trigger_type?{auto_trigger_type:e.auto_trigger_type}:{});default:return r}},r.getReporterMatchedUserFormatInfo=function(){var t=this.context.getUserFormatInfo(),e=ts(t,this.isPartnerReporter()?this.advancedMatchingAvailableProperties:{external_id:!0,email:!0,phone_number:!0}),r=tf(t,{auto_email:!0,auto_phone_number:!0});return Object.keys(r).length>0&&(e.identity_params||(e.identity_params={}),Object.assign(e.identity_params,r)),e},r.getReporterMatchedUserFormatInfoV2=function(){return tu(this.context.getUserFormatInfoV2(),this.isPartnerReporter()?this.advancedMatchingAvailableProperties:{external_id:!0,email:!0,phone_number:!0,first_name:!0,last_name:!0,city:!0,state:!0,country:!0,zip_code:!0,partner_id:!0})},r.isOnsite=function(){var t;return!!(null==(t=this.reporterInfo)?void 0:t.is_onsite)},r.isPartnerReporter=function(){var t=this.getReporterPartner();return!!(t&&"None"!==t)},r.getSignalDiagnosticLabels=function(){var t=this.context.getSignalDiagnosticLabels();if(!t)return Object.assign({},G);var e=this.advancedMatchingAvailableProperties,r=e.email,n=e.phone_number,o=e.auto_email,i=e.auto_phone_number;return Object.assign({},G,tf(t,{raw_email:r=!this.isPartnerReporter()||r,raw_phone:n=!this.isPartnerReporter()||n,hashed_email:r,hashed_phone:n,raw_auto_email:o,raw_auto_phone:i,raw_eb_email:!0,raw_eb_phone:!0,hashed_eb_email:!0,hashed_eb_phone:!0}))},r.setCookieBasedSession=function(t){return t&&(this.session=t),this.session},r.convertCookieBasedSession=function(t,e,r){return e1(this.reporterInfo,this.ttqOptions)&&t!==cE.AUTO_CONFIG&&e&&r?e4(e,r):{}},r.assemblyData=function(e,r,n,o,i){void 0===n&&(n={}),void 0===o&&(o={}),void 0===i&&(i=cE.TRACK);var a,c,u=t.prototype.assemblyData.call(this,e,r,n,o,i);u.is_onsite=this.isOnsitePage.value;var s=T(e)||this.ttqPartner;s&&(u.partner=s),u.signal_diagnostic_labels=this.getSignalDiagnosticLabels();var l=m().getPlugin("SensitiveRedactor");if(l){l.registerEncryptRedactor({keywords:[],regexArray:rI},tt);var f=l.processSync(u.signal_diagnostic_labels,"encrypt");f.success?u.signal_diagnostic_labels=f.redactedOutput:P(a5.CUSTOM_ERROR,f.error,{custom_name:"sensitive_redactor_error",extJSON:{message:"signal_diagnostic_labels"}})}var p=w();p&&(u.context.userAgent=p);var h=function(){try{var t=document.readyState;if("loading"==t)return cv.LOADING;if("interactive"==t)return cv.INTERACTIVE;if("complete"==t)return cv.COMPLETE;return cv.UNKNOWN}catch(t){return cv.UNKNOWN}}();if(h&&(u.context.page.load_progress=h),!E()&&Object.keys(this.context.userInfoFieldAllowlist).length){var v=Object.entries(this.context.userInfoFieldAllowlist).filter(function(t){var r=t[1];return -1===r.indexOf("all")&&-1==r.indexOf(e)}).map(function(t){return t[0]});u.context.user=tl(u.context.user,v)}a=u.properties,void 0===(c=u._inspection)&&(c={}),rv.forEach(function(t){a.hasOwnProperty(t)&&(c[t]=a[t],delete a[t])}),u._inspection=c,i!==cE.PAGE&&(u._inspection.ppf=N()),u._inspection.vids=this.context.getVids();var g=x();if(g&&e1(this.reporterInfo,this.ttqOptions)&&function(){try{var t=m(),e=null==t||null==(r=t._container)?void 0:r.get(d.TTQ_REPORTERS);if(!e)return!1;for(var r,n,o=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return rn(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rn(t,e)}}(t))){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(n=o()).done;){var i=n.value;if(i.plugins&&!0===i.plugins.AutoConfigV2)return!0}return!1}catch(t){return P(a5.CUSTOM_ERROR,t,{custom_name:"jelly-core_config",custom_enum:"hasPixelEnableAutoConfigV2"}),!1}}()&&(u._inspection.inter_id=g),tn(r)&&this.plugins.AutoConfigV2){var y=this.context.getTransactionId();y&&(u._inspection.ga_transaction_id=y)}return u.context.ad.sdk_env=tN(),u.context.ad.jsb_status=function(){try{var t,e;return[a4.INVOKE_METHOD_ENABLED,a4.INVOKE_METHOD_NOT_ENABLED][[!!(null!=(t=window)&&null!=(e=t.ToutiaoJSBridge)&&e.invokeMethod),!0].findIndex(function(t){return t})]}catch(t){return a4.NOT_SURE}}(),i!==cE.INTERACTION&&i!==cE.PERFORMANCE&&i!==cE.PERFORMANCE_INTERACTION||!1!==this.context.getEnableAdTracking()||this.isOnsitePage.value||(u.context.user={},u.context.ad=this.context.getOffsiteAdInfo(),u.context.ad=tl(u.context.ad,ro)),u.properties.reporterId&&delete u.properties.reporterId,u},r.page=function(t){void 0===t&&(t={});var e=em().url;e!==this.currentHref&&(this.currentHref=e,this.track(ri,t,{}))},r.track=function(e,r,n,o,i){var a=this;void 0===r&&(r={}),void 0===n&&(n={}),void 0===o&&(o=cE.TRACK),void 0===i&&(i=cw.defaultReport);var c=function(){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var c={taskName:window.ttq._pf_tn||"track_after_reporter_init",functionName:window.ttq._pf_tn&&"track_after_reporter_init",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="track_after_reporter_init")}}catch(t){}var u=a.getReporterId();if(rr.includes(e))return t.prototype.track.call(a,e,r,n,o,i);var s=Object.assign({},n);a.selfHostConfig[u]&&!n.eventID&&(s=Object.assign({},s,{eventID:W(Y("default_eventId"),u)}));try{window.ttq&&window.ttq._ppf&&(c.end=performance.now(),window.ttq._ppf.push(c),"track_after_reporter_init"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}return t.prototype.track.call(a,e,r,s,o,i)};return this.loaded?c():this.getInstance().then(c)},r.getEventType=function(t){return rd[t]||t},r.trackSync=function(e,r,n,o,i,a,c){if(void 0===n&&(n={}),void 0===o&&(o={}),void 0===i&&(i=cE.TRACK),void 0===a&&(a=cw.defaultReport),"track"===i&&A(a5.PIXEL_SEND,{pixelCode:e,extJSON:{event:r}}),i!==cE.TRACK)return void t.prototype.trackSync.call(this,e,r,n,o,i,a,c);n&&"string"==typeof n.currency&&(n.currency=n.currency.toUpperCase());var u,s=this.context.getTestID();if(s){var l=this.assemblyData(e,r,n,o);return l.tt_test_id=s,l.context.ad={},null==(u=this===null||void 0===this?void 0:this.reportService)||u.report(c||eS,l,cw.htmlHttpReport,cO.P0),l}if(n&&"object"==typeof n){var f,p=n,h=p.value,d=p.currency;void 0===h||!isNaN(h)&&h>=0||A(a5.CUSTOM_ERROR,{pixelCode:e,custom_name:"invalid_value",extJSON:{event:r,value:h,currency:d}}),void 0===d||(void 0===(f=this.currency_list)&&(f=null),(f||ru).includes(d))||A(a5.CUSTOM_ERROR,{pixelCode:e,custom_name:"invalid_currency",extJSON:{event:r,value:h,currency:d}})}return t.prototype.trackSync.call(this,e,r,n,o,i,a,c)},r.trackPostTask=function(t){var e=t.reporterId,r=t.eventType,n=t.properties,o=t.eventConfig;rr.includes(r)||this.selfHostConfig[e]&&!this.hasReportEventHistory(r,cw.htmlHttpReport)&&(this.pushReport(r,this.getReportEventHistoryKey(cw.htmlHttpReport)),this.trackSync(e,r,n,o,cE.SELFHOST,cw.htmlHttpReport))},r.getReportEventHistoryKey=function(t){return t===cw.htmlHttpReport?this.selfHostConfig[this.getReporterId()]:"tiktok"},r.assemblySelfHostData=function(t,e,r,n,o){void 0===r&&(r={}),void 0===n&&(n={});var i=this.assemblyData(t,e,r,n,o),a=this.ttp;return a&&(i.context.user.ttp=a),i},e}(rh);function rP(t,e){return(rP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var rC=function(t,e){return function(r,n){e(r,n,t)}},rk=function(t){function e(e,r,n,o,i,a,c,u,s,l){return t.call(this,{id:e,type:r,isOnsitePage:n,context:o,reporterInfo:i,ttqOptions:a,reportService:c,plugins:u,rules:s,options:l})||this}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,rP(e,t);var r=e.prototype;return r.getInstance=function(){var t,e=this;if(this.pixelPromise)return this.pixelPromise;var r=(t=this.id,tZ()[t]||{});return b()||r&&r.info?(this.loaded=!0,this.pixelPromise=Promise.resolve(this)):(this.pixelPromise=new Promise(function(t,r){var n,o,i=eE();re((n=e.id,o=(null==i?void 0:i.hostname)||"",(tj()?"/static/config.js":"https://analytics.tiktok.com/i18n/pixel/config.js")+"?sdkid="+n+"&hostname="+o)).then(function(){e.loaded=!0,t(e)}).catch(function(t){e.pixelPromise=null,r(t)})}),this.pixelPromise)},r.setCookieBasedSession=function(e){var r=r_(this.pixelCode,e,this.ttqOptions);return t.prototype.setCookieBasedSession.call(this,r)},r.track=function(e,r,n,o,i){var a;if(void 0===r&&(r={}),void 0===n&&(n={}),void 0===o&&(o=cE.TRACK),void 0===i&&(i=cw.defaultReport),a=r,["[object Object]","[object Array]"].includes(Object.prototype.toString.call(a))||(r={description:JSON.stringify(r)}),n&&n.pixel_code&&this.getReporterId()!==n.pixel_code)return Promise.resolve(null);if(e1(this.reporterInfo,this.ttqOptions)){var c=e3(document.cookie);Object.assign(n,{pixelSession:this.setCookieBasedSession(c[this.getReporterId()]),pageSession:this.context.setPageCookieBasedSession(c[""])})}return t.prototype.track.call(this,e,r,n,o,i)},e}(rA);function rD(t,e){return(rD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var rj=function(t){function e(){return t.apply(this,arguments)||this}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,rD(e,t);var r=e.prototype;return r.getInstance=function(){return this.pixelPromise=Promise.resolve(this),this.pixelPromise},r.track=function(t,e,r){return void 0===e&&(e={}),void 0===r&&(r={}),t0(this.getReporterId(),"track",[t,e,r]),Promise.resolve(null)},e}(rk=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([ep(),rC(0,eh(tR.ID)),rC(1,eh(tR.Type)),rC(2,eh(tR.IsOnsitePage)),rC(3,eh(d.CONTEXT)),rC(4,eh(tR.Info)),rC(5,eh(d.TTQ_GLOBAL_OPTIONS)),rC(6,eh(d.REPORT_SERVICE)),rC(7,eh(tR.Plugins)),rC(7,ed()),rC(8,eh(tR.Rules)),rC(8,ed()),rC(9,eh(tR.Options)),rC(9,ed())],rk));function rM(){rM=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function d(){}var v={};u(v,i,function(){return this});var g=Object.getPrototypeOf,y=g&&g(g(I([])));y&&y!==e&&r.call(y,i)&&(v=y);var _=d.prototype=p.prototype=Object._ttq_create(v);function m(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function rF(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}function rU(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){rF(i,n,o,a,c,"next",t)}function c(t){rF(i,n,o,a,c,"throw",t)}a(void 0)})}}function rG(t,e){return(rG=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var rq=function(t,e){return function(r,n){e(r,n,t)}},rH=function(t){function e(e,r,n,o,i,a,c,u,s,l,f,p,h,d,v,g,y,_,m,E,b,w,O,I,T,S,R,N){(x=t.call(this,e,i,l,f)||this).context=e,x.env=s,x.reporters=r,x.globalTtqOption=p,x.cookieService=a,x.reportService=i,x.consentService=c,x.adService=n,x.appService=o,x.clickInteractionIdService=u,x.historyObserver=I,x.interactionObserver=T,x.autoAdvancedMatchingPlugin=d,x.callbackPlugin=v,x.identifyPlugin=g,x.monitorPlugin=h,x.shopifyPlugin=y,x.autoConfigPlugin=_,x.diagnosticsConsolePlugin=m,x.eventBuilderPlugin=E,x.pagedataPlugin=O,x.enrichIpv6Plugin=b,x.lpvPlugin=w,x.runtimeMeasurementPlugin=S,x.textTreeWalkerPlugin=R,x.cdpVisiterPlugin=N,x.eventEmitter=l,x.sensitiveRedactor=f,x.historyObserver&&x.useObserver(x.historyObserver),x.interactionObserver&&x.useObserver(x.interactionObserver),x.autoAdvancedMatchingPlugin&&x.usePlugin(x.autoAdvancedMatchingPlugin),x.callbackPlugin&&x.usePlugin(x.callbackPlugin),x.identifyPlugin&&x.usePlugin(x.identifyPlugin),x.monitorPlugin&&x.usePlugin(x.monitorPlugin),x.shopifyPlugin&&x.usePlugin(x.shopifyPlugin),x.autoConfigPlugin&&x.usePlugin(x.autoConfigPlugin),x.diagnosticsConsolePlugin&&x.usePlugin(x.diagnosticsConsolePlugin),x.eventBuilderPlugin&&x.usePlugin(x.eventBuilderPlugin),x.enrichIpv6Plugin&&x.usePlugin(x.enrichIpv6Plugin),x.lpvPlugin&&x.usePlugin(x.lpvPlugin),x.runtimeMeasurementPlugin&&x.usePlugin(x.runtimeMeasurementPlugin),x.textTreeWalkerPlugin&&x.usePlugin(x.textTreeWalkerPlugin),x.cdpVisiterPlugin&&x.usePlugin(x.cdpVisiterPlugin),x.sensitiveRedactor&&x.usePlugin(x.sensitiveRedactor),x.monitorPlugin&&(L.info.forEach(function(t){var e;null==(e=x.monitorPlugin)||e.info(t.event,t.detail,t.withoutJSB)}),L.error.forEach(function(t){var e;null==(e=x.monitorPlugin)||e.error(t.event,t.err,t.detail,t.withoutJSB)}),L.info=[],L.error=[]),x.dispatch(cd.INIT_START),x.pagedataPlugin&&x.usePlugin(x.pagedataPlugin),x.onPageLoaded(),x.initLCPListener(),x.onPageLeave();var x,A=em(),P=A.url,C=A.referrer;return x.init(P,C),x.setPageInfo(P,C),x.dispatch(cd.INIT_END),x}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,rG(e,t);var r,i=e.prototype;return i.initAdInfo=function(t,e){this.dispatch(cd.BEFORE_AD_INFO_INIT_START);var r=ew(n);if(r)return void this.initAdCache(r);if(tW()){var o=eM(t,e);o&&(o.creative_id&&o.log_extra||o.callback)&&(this.dispatch(cd.AD_INFO_INIT_START),eI(n,o),this.setAdInfo(o),this.initOffsiteAdInfo(o));return}this.initBaseAdInfo(t,e)},i.initAdCache=function(t){this.dispatch(cd.AD_INFO_INIT_START),t.ad_info_from="cache",t.ad_info_status="fulfilled(cache)",this.setAdInfo(t),this.initOffsiteAdInfo(t)},i.initBaseAdInfo=function(t,e){var r=this;this.adService.webBridgeService.jsbridge&&this.dispatch(cd.AD_INFO_INIT_START),this.reportService.pushPreposition(rU(rM().mark(function n(){var o;return rM().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,r.adService.getAdInfo(t,e);case 3:o=n.sent,r.context.setAdInfo(o),r.initOffsiteAdInfo(o),n.next=11;break;case 8:n.prev=8,n.t0=n.catch(0),P(a5.INIT_ERROR,n.t0,{extJSON:{position:"initAdInfo"}});case 11:case"end":return n.stop()}},n,null,[[0,8]])}))())},i.initOffsiteAdInfo=function(t){var e=eU(t,function(t){P(a5.INIT_ERROR,t,{extJSON:{position:"handleAdInfoOfficial"}})});this.context.setOffsiteAdInfo(e);var r=eF(t,this.env);this.context.setEnableAdTracking(r),this.dispatch(cd.AD_INFO_INIT_END,{extJSON:{enabledAdTracking:r}})},i.initAppInfo=function(t,e){var r=this,n=ew(o);if(n)return void this.context.setAppInfo(n);this.reportService.pushPreposition(rU(rM().mark(function n(){var o;return rM().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.initBaseAppInfo(t,e);case 2:return o=n.sent,n.abrupt("return",o);case 4:case"end":return n.stop()}},n)}))())},r=rU(rM().mark(function t(e,r){var n;return rM().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.appService.getAppInfo(e,r);case 2:return n=t.sent,this.context.setAppInfo(n),t.abrupt("return",n);case 5:case"end":return t.stop()}},t,this)})),i.initBaseAppInfo=function(t,e){return r.apply(this,arguments)},i.initTestId=function(t,e){if(!this.context.getTestID()){var r=e$(t,eW("tt_test_id"),e);this.context.setTestID(r)}},i.initUserInfo=function(){this.setCookieInfo()},i.initLocalServiceInfo=function(){var t,e,r=ew(p);if(r)return void this.context.setUserInfoWithoutIdentifyPlugin(((t={})[p]=r,t));var n=em(),o=n.url,i=n.referrer,a=ey(eb(this.globalTtqOption),o,i);a&&(eI(p,a),this.context.setUserInfoWithoutIdentifyPlugin(((e={})[p]=a,e)))},i.setPageIndex=function(t){t&&eX(t)},i.instance=function(t){this.beforeAPIExecution();var e=this.getReporter(t);return e||new rj(t,cs.PIXEL_CODE,{value:!1},this.context,{pixelCode:t},{},{})},i.instances=function(){return this.beforeAPIExecution(),this.reporters},i.page=function(e){this.beforeAPIExecution();var r=em(),n=r.url,o=r.referrer;t.prototype.page.call(this,Object.assign({url:(null==e?void 0:e.page)||n,referrer:(null==e?void 0:e.referrer)||o},e))},i.track=function(e,r,n){void 0===r&&(r={}),void 0===n&&(n={});try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var o={taskName:window.ttq._pf_tn,functionName:"web_track_handler",start:performance.now()}}catch(t){}this.beforeAPIExecution();var i=n.pixel_code;if(void 0===i&&t.prototype.track.call(this,e,r,n),void 0!==i){var a=this.instance(i);a instanceof rj||a.track(e,r,n)}try{window.ttq&&window.ttq._ppf&&(o.end=performance.now(),window.ttq._ppf.push(o))}catch(t){}},i.identify=function(e,r){this.beforeAPIExecution(),t.prototype.identify.call(this,e,r)},i.setAdInfo=function(t){this.context.setAdInfo(t)},i.enableFirstPartyCookie=function(t){this.cookieService.enableFirstPartyCookie(t),t&&this.setCookieInfo()},i.enableCookie=function(){this.cookieService.enableFirstPartyCookie(!0),this.setCookieInfo(),this.cookieService.enableCookie()},i.disableCookie=function(){this.cookieService.disableCookie(),this.context.setUserInfoWithoutIdentifyPlugin({anonymous_id:void 0}),this.disablePangleCookie()},i.holdConsent=function(){this.consentService.setConsentMode(ci.HOLD)},i.revokeConsent=function(){this.consentService.setConsentMode(ci.REVOKE)},i.grantConsent=function(){this.consentService.setConsentMode(ci.GRANT)},i.disablePangleCookie=function(){},i.setAnonymousId=function(t){this.cookieService.setAnonymousId(t),this.initUserInfo()},i.resetCookieExpires=function(){this.cookieService.resetExpires()},i.setCookieInfo=function(){if(this.cookieService.canUseCookie()){var t=this.cookieService.getAnonymousId();t&&this.context.setUserInfoWithoutIdentifyPlugin({anonymous_id:t})}},i.initLCPListener=function(){var t,e=this;(void 0===t&&(t=5e3),new Promise(function(e){var r,n,o=!1,i="timeout",a=function(){if(!o){o=!0;try{null==n||n.disconnect()}catch(t){P(a5.CUSTOM_ERROR,t,{extJSON:{position:"waitForLCPOrTimeoutDetailed"}})}clearTimeout(c),e({reason:i,lcpTime:r})}},c=setTimeout(a,t);if("undefined"==typeof PerformanceObserver){i="unsupported",a();return}try{n=new PerformanceObserver(function(t){var e=t.getEntries();e.length>0&&(r=e[e.length-1].startTime,i="lcp",a())}),n.observe({type:"largest-contentful-paint",buffered:!0})}catch(t){P(a5.CUSTOM_ERROR,t,{extJSON:{position:"waitForLCPOrTimeoutDetailedCatch"}}),i="unsupported",a()}})).then(function(t){"lcp"===t.reason&&void 0!==t.lcpTime&&e.dispatch(cd.PAGE_LCP,{startTime:t.lcpTime,value:t.lcpTime,reason:t.reason})}).catch(function(t){P(a5.CUSTOM_ERROR,t,{extJSON:{position:"initLCPListener"}})})},i.onPageLoaded=function(){var t=this;window.addEventListener("load",function(){t.dispatch(cd.PAGE_DID_LOAD)},{once:!0})},i.onPageLeave=function(){var t=this,e=ti(function(){var e=B();t.dispatch(cd.PAGE_WILL_LEAVE,e),t.consentService.updateCache()});document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&e()}),"onpagehide"in window&&window.addEventListener("pagehide",function(){e()}),window.addEventListener("beforeunload",function(){return e},{once:!0})},i.beforeAPIExecution=function(){try{var t,e;t=this.context,em().url===t.getPageInfo().url||this.setPageInfo(em().url),e=this.context,eW(a)===e.getUserInfo().anonymous_id||rg(this.context)}catch(t){P(a5.API_ERROR,t,{extJSON:{position:"beforeAPIExecution"}})}},i.loadPixel=function(t,e){if(t){if(this.reporters.find(function(e){return e.getReporterId()===t}))return void C(cy.DUPLICATE_PIXEL_CODE);m().load(t,e||{})}},e}(e9),rV=rH=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([ep(),rq(0,eh(d.CONTEXT)),rq(1,eh(d.TTQ_REPORTERS)),rq(2,eh(d.AD_SERVICE)),rq(3,eh(d.APP_SERVICE)),rq(4,eh(d.REPORT_SERVICE)),rq(5,eh(d.COOKIE_SERVICE)),rq(6,eh(d.CONSENT_SERVICE)),rq(7,eh(d.INTER_ID_SERVICE)),rq(8,eh(d.ENV)),rq(9,eh(d.EVENT_EMITTER)),rq(10,eh(d.SENSITIVE_REDACTOR)),rq(11,eh(d.TTQ_GLOBAL_OPTIONS)),rq(12,eh(d.MONITOR_PLUGIN)),rq(12,ed()),rq(13,eh(d.AUTO_ADVANCED_MATCHING_PLUGIN)),rq(13,ed()),rq(14,eh(d.CALLBACK_PLUGIN)),rq(14,ed()),rq(15,eh(d.IDENTIFY_PLUGIN)),rq(15,ed()),rq(16,eh(d.SHOPIFY_PLUGIN)),rq(16,ed()),rq(17,eh(d.AUTO_CONFIG_PLUGIN)),rq(17,ed()),rq(18,eh(d.DIAGNOSTICS_CONSOLE_PLUGIN)),rq(18,ed()),rq(19,eh(d.EVENT_BUILDER_PLUGIN)),rq(19,ed()),rq(20,eh(d.ENRICH_IPV6_PLUGIN)),rq(20,ed()),rq(21,eh(d.LPV_PLUGIN)),rq(21,ed()),rq(22,eh(d.PAGEDATA_PLUGIN)),rq(22,ed()),rq(23,eh(d.HISTORY_OBSERVER)),rq(23,ed()),rq(24,eh(d.INTERACTION_OBSERVER)),rq(24,ed()),rq(25,eh(d.RUNTIME_MEASUREMENT_PLUGIN)),rq(25,ed()),rq(26,eh(d.TEXT_TREE_WALKER_PLUGIN)),rq(26,ed()),rq(27,eh(d.CDP_VISITER_PLUGIN)),rq(27,ed())],rH);function rB(){return(rB=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([ep()],rK);var rJ=function(t,e){return function(r,n){e(r,n,t)}},rX=function(t){function e(e,r,n,o,i,a){var c;return(c=t.call(this,e,o)||this).setSignalType(a||cu.OFFSITE),c.pageSign={sessionId:"",pageId:"",variationId:"",vids:"",pageIndex:{main:-1,sub:-1,index:-1}},c.legacy=n.legacy||[],c.variationId=n.variation_id||"",c.vids=n.vids||"",c.serverUniqueId=n.server_unqiue_id||"",c.ttqOptions=n,c.reportService=r,c.initPageSign(),tA(i)&&tD()&&(c.enableAdTracking=!1),c.data=function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(c),c}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,rW(e,t);var r=e.prototype;return r.getSessionIdFromCache=function(){var t=null;try{t=JSON.parse(sessionStorage.getItem(c)||"")}catch(t){}return t},r.setSessionIdToCache=function(t){eI(c,t)},r.getVariationId=function(){return this.variationId},r.getVids=function(){return this.vids},r.isLegacyPixel=function(t){return I(t,this.legacy)},r.assignPageInfo=function(t){Object.assign(this.pageInfo,t)},r.getSessionIndex=function(){var t={main:-1,sub:-1,index:-1};try{var e=JSON.parse(sessionStorage.getItem(u)||"{}");if(e)return Object.assign({},t,e)}catch(t){}return t},r.setUserInfo=function(t,e){var r=this;void 0===t&&(t={});var n=null==e?void 0:e.reporterId;if(0!==Object.keys(t).length){var o={};Object.entries(t).forEach(function(t){var e,i,a,c=t[0],u=t[1];if(u){if(r.userInfoFieldAllowlist[c]||(r.userInfoFieldAllowlist[c]=[]),n?null==(e=r.userInfoFieldAllowlist[c])||e.push(n):null==(i=r.userInfoFieldAllowlist[c])||i.push("all"),c===V)return void r.setUserInfoWithoutIdentifyPlugin(((a={})[V]=u,a));o[c]=String(u).trim()}});var i=m(),a=null==i?void 0:i.getPlugin("Identify");a&&this.reportService.pushPreposition(a.handleUserProperties(o,t).then(function(t){void 0===t&&(t={});try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var i={taskName:window.ttq._pf_tn||"identify_after_encryption",functionName:window.ttq._pf_tn&&"identify_after_encryption",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="identify_after_encryption")}}catch(t){}var c=t,u=c.userProperties,s=c.userDataFormat,l=c.userDataFormatV2;if(u){Object.assign(r.userInfo,u);var f=r.getUserFormatInfo()||{},p=r.getUserFormatInfoV2()||{},h=r.getSignalDiagnosticLabels()||{};r.setUserFormatInfo(Object.assign({},f,s)),r.setUserFormatInfoV2(Object.assign({},p,l)),r.setSignalDiagnosticLabels(Object.assign({},h,t.identifierLabel||{}));var d=Object.keys(r.userInfo);if(0===d.length||1===Object.keys(o).length&&Object.keys(o).includes("external_id"))return;var v=a.reporters[0];if(n)v=a.reporters.find(function(t){return t.getReporterId()===n});else if(null==(g=String(d))?void 0:g.includes("auto_")){for(var g,y,_,m=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return rY(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rY(t,e)}}(t))){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(d);!(_=m()).done&&"break"!==function(){var t=_.value,e=a.reporters.find(function(e){var r,n;return null==(n=null==(r=null==e?void 0:e.plugins)?void 0:r.AutoAdvancedMatching)?void 0:n[t]});if(e)return y=e,"break"}(););y&&(v=y)}else v=a.reporters.find(function(t){if(Object.keys(t.getUserInfo(ct.Manual)).length)return!0});var E=v?Object.keys(Object.assign({},v.getUserInfo(ct.Manual),v.getUserInfo(ct.Auto),v.getUserInfo(ct.EBManual))):[];v&&E.length&&v.track("EnrichAM",e||{},{},cE.TRACK)}try{window.ttq&&window.ttq._ppf&&(i.end=performance.now(),window.ttq._ppf.push(i),"identify_after_encryption"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}}).catch(function(t){P(a5.API_ERROR,t,{extJSON:{api:"identify"}})}))}},r.initPageSign=function(){var t,e,r=this.getSessionIdFromCache();null===r&&(r=(t=this.serverUniqueId)?""+t+"::"+ta(20):Y("sessionId"),this.setSessionIdToCache(r));var n=this.getPageId((e=r)?e.split("::")[0]:""),o=this.getVariationId(),i=this.getSessionIndex(),a=eV();i.main++,this.pageSign={sessionId:r,pageId:n,variationId:o,pageIndex:i,etldPlusOne:a}},r.setPageCookieBasedSession=function(e,r){void 0===r&&(r=cm.ORIGIN_TRIGGER);var n=r_("",e,this.ttqOptions,r);return t.prototype.setPageCookieBasedSession.call(this,n)},e}(rK);rX=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([ep(),rJ(0,eh(tR.WebLibraryInfo)),rJ(1,eh(d.REPORT_SERVICE)),rJ(2,eh(d.TTQ_GLOBAL_OPTIONS)),rJ(3,eh(d.EVENT_EMITTER)),rJ(4,eh(d.ENV)),rJ(4,ed()),rJ(5,eh(tR.SignalType)),rJ(5,ed())],rX);var rz=String.fromCharCode.bind(String),rQ=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),rZ=function(t){for(var e,r,n,o,i="",a=t.length%3,c=0;c255||(n=t.charCodeAt(c++))>255||(o=t.charCodeAt(c++))>255)throw TypeError("invalid character found");i+=rQ[(e=r<<16|n<<8|o)>>18&63]+rQ[e>>12&63]+rQ[e>>6&63]+rQ[63&e]}return a?i.slice(0,a-3)+"===".substring(a):i},r$=function(t){if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?rz(192|e>>>6)+rz(128|63&e):rz(224|e>>>12&15)+rz(128|e>>>6&63)+rz(128|63&e)}var r=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return rz(240|r>>>18&7)+rz(128|r>>>12&63)+rz(128|r>>>6&63)+rz(128|63&r)},r0=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,r1=function(t){return rZ(JSON.stringify(t).replace(r0,r$)).replace(/=/g,"").replace(/[+\/]/g,function(t){return"+"===t?"-":"_"})};function r2(){r2=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function d(){}var v={};u(v,i,function(){return this});var g=Object.getPrototypeOf,y=g&&g(g(I([])));y&&y!==e&&r.call(y,i)&&(v=y);var _=d.prototype=p.prototype=Object._ttq_create(v);function m(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function r3(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}var r6=function(){function t(t,e,r){this.httpService=t,this.bridgeService=e,this.reportPreTasks=r}var e,r,n=t.prototype;return n.pushPreposition=function(t){this.reportPreTasks.push(t)},e=r2().mark(function t(e,r,n,o){return r2().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Promise.resolve());case 1:case"end":return t.stop()}},t)}),r=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(t){r3(i,n,o,a,c,"next",t)}function c(t){r3(i,n,o,a,c,"throw",t)}a(void 0)})},n.report=function(t,e,n,o){return r.apply(this,arguments)},t}();r6=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([ep()],r6);var r5=function(t,e){var r=new URL(t);return Object.keys(e).forEach(function(t){var n=e[t].toJSON?e[t].toJSON():String(e[t]);r.searchParams.set(t,n)}),r.toString()},r4=function(t){var e=Array(t.length),r=0;return new Promise(function(n,o){for(var i=function(o){var i=t[o];i&&"function"==typeof i.then?i.then(function(i){e[o]={status:"fulfilled",value:i},++r===t.length&&n(e)}).catch(function(i){e[o]={status:"rejected",reason:i},++r===t.length&&n(e)}):(e[o]={status:"fulfilled",value:i},++r===t.length&&n(e))},a=0;a=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function r7(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}function nt(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){r7(i,n,o,a,c,"next",t)}function c(t){r7(i,n,o,a,c,"throw",t)}a(void 0)})}}function ne(t,e){return(ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var nr=function(t,e){return function(r,n){e(r,n,t)}},nn=function(t){function e(e,r,n,o){var i;return(i=t.call(this,e,r,new r8)||this).supportSendAnalyticsEvent=!0,i.consentService=n,i.consentService.on(cf.QUEUE,function(t){t.forEach(function(t){var e=t.url,r=t.data,n=t.type;i.report(e,r,n,cO.P0)})}),i.env=o,i}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,ne(e,t);var r,n,o,i=e.prototype;return r=nt(r9().mark(function t(e,r,n){var o,i,a,c,u,s,l;return r9().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.bridgeService.jsbridge){t.next=2;break}return t.abrupt("return");case 2:return s=!!(u=r).context&&(null==(i=null==(o=u.context)?void 0:o.ad)?void 0:i.ad_info_status)==="timeout",l={},t.prev=5,t.next=8,this.bridgeService.send(u,s);case 8:if(!(!(l=t.sent)||1!==l.code)){t.next=11;break}throw Error("[fetch bridge] sendLog error: code "+(l&&l.code)+", data: "+(l&&JSON.stringify(l)));case 11:return te(u.event)&&A(a5.JSB_SEND,{pixelCode:null==(a=u.context.pixel)?void 0:a.code,app_name:tU()?"ultralite":"",extJSON:{event:u.event,event_id:u.event_id,need_inject_ad_info:s}}),t.abrupt("return",l);case 15:t.prev=15,t.t0=t.catch(5),te(u.event)&&P(a5.JSB_ERROR,t.t0,{pixelCode:null==(c=u.context.pixel)?void 0:c.code,custom_name:"sendReportData",custom_enum:l&&l.code?""+l.code:"non",app_name:tB()||"",extJSON:{position:"sendReportData"}}),tU()&&tk()&&this.sendHttpReport(e,u,n);case 19:case"end":return t.stop()}},t,this,[[5,15]])})),i.send=function(t,e,n){return r.apply(this,arguments)},n=nt(r9().mark(function t(e,r,n,o,i){var a;return r9().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return void 0===o&&(o=!0),t.next=3,this.httpService.send(e,r,i);case 3:t.sent||this.httpService.sendByImage(e,{analytics_message:n}),o&&A(a5.HTTP_SEND,{pixelCode:null==(a=r.context.pixel)?void 0:a.code,extJSON:{event:r.event,event_id:r.event_id}});case 6:case"end":return t.stop()}},t,this)})),i.sendHttpReport=function(t,e,r,o,i){return n.apply(this,arguments)},i.beforeReport=function(t,e,r){void 0===r&&(r=cw.defaultReport);var n=this.consentService.getConsentMode();return n!==ci.REVOKE&&(n!==ci.HOLD||(this.consentService.cacheReportTask(t,e,r),!1))},o=nt(r9().mark(function t(e,r,n,o){var i,a,c,u;return r9().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===n&&(n=cw.defaultReport),void 0===o&&(o=cO.P0),o===cO.P0){t.next=8;break}return t.next=5,th(0);case 5:return t.next=7,this.report(e,r,n,cO.P0);case 7:case 15:return t.abrupt("return",t.sent);case 8:if(this.beforeReport(e,r,n)){t.next=11;break}return t.abrupt("return");case 11:if(i=r1(r),!(n===cw.defaultReport&&this.bridgeService.jsbridge)){t.next=16;break}return t.next=15,this.send(e,r,i);case 16:if(!(n===cw.httpReport&&this.bridgeService.jsbridge&&tA(this.env)&&!tF()&&this.supportSendAnalyticsEvent)){t.next=35;break}return a=e,t.prev=18,a=new URL(e).pathname,t.next=22,this.bridgeService.sendAnalyticsEvent({path:a,method:"POST",data:r});case 22:if(u=Error("sendAnalyticsEvent not support: code "+(c=t.sent)+", path: "+a+", data: "+JSON.stringify(r)),null!=c&&-2!==c){t.next=27;break}throw this.supportSendAnalyticsEvent=!1,u;case 27:if(1!==c){t.next=29;break}return t.abrupt("return");case 29:throw u;case 32:t.prev=32,t.t0=t.catch(18),P(a5.CUSTOM_ERROR,t.t0,{custom_name:"sendAnalyticsEvent",custom_enum:String(c)},!0);case 35:this.sendHttpReport(e,r,i,!!(te(r.event)&&to(r)),r.action?3:void 0);case 36:case"end":return t.stop()}},t,this,[[18,32]])})),i.report=function(t,e,r,n){return o.apply(this,arguments)},i.reportFL=function(t){this.bridgeService.jsbridge&&this.bridgeService.updateWebFlData(t)},e}(r6);function no(){no=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function d(){}var v={};u(v,i,function(){return this});var g=Object.getPrototypeOf,y=g&&g(g(I([])));y&&y!==e&&r.call(y,i)&&(v=y);var _=d.prototype=p.prototype=Object._ttq_create(v);function m(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function ni(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}nn=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([ep(),nr(0,eh(d.HTTP_SERVICE)),nr(1,eh(d.BRIDGE_SERVICE)),nr(2,eh(d.CONSENT_SERVICE)),nr(3,eh(d.ENV)),nr(3,ed())],nn);var na=function(){function t(t){this.webBridgeService=t}var e,r,o=t.prototype;return e=no().mark(function t(e,r){var o,i,a;return no().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(o=this.getAdInfoFromURL(e,r),!this.webBridgeService.jsbridge){t.next=7;break}return t.next=4,this.webBridgeService.getAdInfo();case 4:t.t0=t.sent,t.next=8;break;case 7:t.t0={};case 8:return i=t.t0,(a=Object.assign({},o,i))&&(a.creative_id&&a.log_extra||a.callback)&&eI(n,a),t.abrupt("return",a);case 12:case"end":return t.stop()}},t,this)}),r=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(t){ni(i,n,o,a,c,"next",t)}function c(t){ni(i,n,o,a,c,"throw",t)}a(void 0)})},o.getAdInfo=function(t,e){return r.apply(this,arguments)},o.getAdInfoFromURL=function(t,e){return eM(t,e)},t}();function nc(){nc=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function d(){}var v={};u(v,i,function(){return this});var g=Object.getPrototypeOf,y=g&&g(g(I([])));y&&y!==e&&r.call(y,i)&&(v=y);var _=d.prototype=p.prototype=Object._ttq_create(v);function m(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function nu(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}na=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([ep(),(aj=eh(d.BRIDGE_SERVICE),function(t,e){aj(t,e,0)})],na);var ns=function(){function t(t){this.webBridgeService=t}var e,r,n=t.prototype;return e=nc().mark(function t(e,r){var n,i,a,c;return nc().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((n=this.getAppInfoFromURL(e,r)).platform=tP(),!tk()){t.next=10;break}return t.next=5,tC();case 5:a=(i=t.sent).model,c=i.platformVersion,n.device_model=a,n.android_version=c;case 10:return"{}"!==JSON.stringify(n)&&eI(o,n),t.abrupt("return",n);case 12:case"end":return t.stop()}},t,this)}),r=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(t){nu(i,n,o,a,c,"next",t)}function c(t){nu(i,n,o,a,c,"throw",t)}a(void 0)})},n.getAppInfo=function(t,e){return r.apply(this,arguments)},n.getAppInfoFromURL=function(t,e){try{var r=ey(ej,t,e),n=r&&JSON.parse(r),o=n.device_id,i=n.uid;return{device_id:o,user_id:i}}catch(t){return{}}},t}();ns=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([ep(),(aM=eh(d.BRIDGE_SERVICE),function(t,e){aM(t,e,0)})],ns);var nl="ad_analytics_msg";function nf(){nf=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function d(){}var v={};u(v,i,function(){return this});var g=Object.getPrototypeOf,y=g&&g(g(I([])));y&&y!==e&&r.call(y,i)&&(v=y);var _=d.prototype=p.prototype=Object._ttq_create(v);function m(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function np(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}function nh(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){np(i,n,o,a,c,"next",t)}function c(t){np(i,n,o,a,c,"throw",t)}a(void 0)})}}var nd=function(t,e){return function(r,n){e(r,n,t)}},nv=function(){function t(t,e){this.env=t,tL(this.env)&&(this.jsbridge=e),this.bridgeTimeout=400}var e,r,n,o,i,a,c,u=t.prototype;return e=nh(nf().mark(function t(){var e=this;return nf().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.jsbridge){t.next=3;break}return P(a5.JSB_ERROR,Error("tt bridge error when getting ad info"),{extJSON:{position:"getAdInfo"}}),t.abrupt("return",Promise.resolve({}));case 3:return t.abrupt("return",new Promise(function(){var t=nh(nf().mark(function t(r){var n;return nf().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.callAdInfo();case 3:(n=t.sent).ad_info_from="jsb",n.ad_info_status=n.ad_info_status||"fulfilled",r(n),t.next=13;break;case 9:t.prev=9,t.t0=t.catch(0),r({}),P(a5.JSB_ERROR,t.t0,{extJSON:{position:"getAdInfo"}});case 13:case"end":return t.stop()}},t,null,[[0,9]])}));return function(e){return t.apply(this,arguments)}}()));case 4:case"end":return t.stop()}},t,this)})),u.getAdInfo=function(){return e.apply(this,arguments)},r=nh(nf().mark(function t(){var e,r;return nf().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.call("adInfo",{},tM()?3500:5e3);case 3:if((e=t.sent).data){t.next=6;break}return t.abrupt("return",Promise.reject("adInfo no data"));case 6:return r={creative_id:e.data.cid,log_extra:e.data.log_extra},t.abrupt("return",r);case 10:if(t.prev=10,t.t0=t.catch(0),"JSBRIDGE TIMEOUT"!==t.t0){t.next=17;break}return A(a5.CUSTOM_INFO,{custom_name:"ad_info_init_timeout"}),t.abrupt("return",{ad_info_status:"timeout"});case 17:return P(a5.JSB_ERROR,t.t0,{extJSON:{position:"getAdInfo"}}),t.abrupt("return",{});case 19:case"end":return t.stop()}},t,this,[[0,10]])})),u.callAdInfo=function(){return r.apply(this,arguments)},n=nh(nf().mark(function t(){return nf().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Promise.resolve({}));case 1:case"end":return t.stop()}},t)})),u.getAppInfo=function(){return n.apply(this,arguments)},o=nh(nf().mark(function t(e,r){var n,o,i,a,c,u,s,l,f,p,h,d;return nf().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.jsbridge){t.next=2;break}return t.abrupt("return",Promise.resolve());case 2:return i=(null==(o=null==(n=null==e?void 0:e.context)?void 0:n.ad)?void 0:o.creative_id)||"0",a=r1(e),c=tr(e)?"insight_log_monitor":"insight_log",u={analytics_message:a,trackLogData:JSON.stringify(e),category:"ad_analytics_msg",tag:nl,label:c},tF()&&(u.is_ad_event=1),f={eventName:nl,labelName:c,value:i,extValue:"0",extJson:u},"insight_log_monitor"===c&&tz(new Set([a6.MUSICAL_LY,a6.TRILL,a6.ULTRALITE]))?(l="x.reportAppLog",p={eventName:"insight_log_monitor",params:u},s=this.call("x.reportAppLog",p,this.bridgeTimeout)):tW()||tr(e)?(l="sendLog",s=this.call("sendLog",f,this.bridgeTimeout)):tA(this.env)?tD()&&r?(h={eventName:c,params:u},l="sendLogWithAdInfo",s=this.call("sendLogWithAdInfo",h,this.bridgeTimeout)):(l="sendLog",s=this.call("sendLog",f,this.bridgeTimeout)):(d={event_name:c,version:2,properties:u},l="track_event",s=this.call("track_event",d,400)),setTimeout(function(){A(a5.CUSTOM_INFO,{custom_name:"send_report_data",extJSON:{api_name:l}})}),t.abrupt("return",s);case 11:case"end":return t.stop()}},t,this)})),u.send=function(t,e){return o.apply(this,arguments)},i=nh(nf().mark(function t(e,r,n,o){var i=this;return nf().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return void 0===r&&(r={}),void 0===n&&(n=400),void 0===o&&(o=!0),t.abrupt("return",new Promise(function(t,a){var c;if(!i.jsbridge){a("JSBRIDGE ERROR"),o&&P(a5.JSB_ERROR,Error("JSBRIDGE ERROR"),{extJSON:{position:"getCallPromise"}});return}n>0&&(c=window.setTimeout(function(){a("JSBRIDGE TIMEOUT"),o&&P(a5.JSB_ERROR,Error("JSBRIDGE TIMEOUT"),{extJSON:{position:"getCallPromise",method:e}})},n)),i.jsbridge&&i.jsbridge.call&&i.jsbridge.call(e,r,function(e){t(function(t,e){void 0===e&&(e=!0);var r={};try{if("string"==typeof t)r.data=JSON.parse(t);else if(t.code&&t.data&&t.ret?0:1)if(void 0!==t.code){var n=Object.assign({},t),o=n.code;r.code=o,delete n.code,n.data?r.data=n.data:r.data=n}else r.data=t;else(r=t).__data&&(r.data=r.__data)}catch(t){e&&P(a5.JSB_ERROR,t,{extJSON:{position:"getCallPromise bridge.call"}})}return r}(e,o)),window.clearTimeout(c)})}));case 4:case"end":return t.stop()}},t)})),u.call=function(t,e,r,n){return i.apply(this,arguments)},a=nh(nf().mark(function t(e){var r,n,o,i,a;return nf().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.method,n=e.path,o=e.params,i=e.data,t.next=3,this.call("sendAnalyticsEvent",{method:r,path:n,params:o,data:i,header:{"Content-Type":"application/json"}},0,!1);case 3:return a=t.sent,t.abrupt("return",null==a?void 0:a.code);case 5:case"end":return t.stop()}},t,this)})),u.sendAnalyticsEvent=function(t){return a.apply(this,arguments)},c=nh(nf().mark(function t(e){return nf().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(tA(this.env)&&tD())){t.next=2;break}return t.abrupt("return",this.call("updateFLLocalConv",e,this.bridgeTimeout));case 2:case"end":return t.stop()}},t,this)})),u.updateWebFlData=function(t){return c.apply(this,arguments)},t}();function ng(){ng=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function d(){}var v={};u(v,i,function(){return this});var g=Object.getPrototypeOf,y=g&&g(g(I([])));y&&y!==e&&r.call(y,i)&&(v=y);var _=d.prototype=p.prototype=Object._ttq_create(v);function m(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function ny(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}nv=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([ep(),nd(0,eh(d.ENV)),nd(0,ed()),nd(1,eh(d.JS_BRIDGE)),nd(1,ed())],nv);var n_=function(){function t(){}var e,r,n=t.prototype;return e=ng().mark(function t(e,r,n){var o;return ng().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===n&&(n=0),t.prev=1,!(!navigator||!navigator.sendBeacon)){t.next=4;break}return t.abrupt("return",!1);case 4:if(!(!(o=navigator.sendBeacon(e,JSON.stringify(r)))&&"number"==typeof n&&n>0)){t.next=10;break}return n--,t.next=9,th(200);case 9:return t.abrupt("return",this.send(e,r,n));case 10:return t.abrupt("return",o);case 13:return t.prev=13,t.t0=t.catch(1),t.abrupt("return",!1);case 16:case"end":return t.stop()}},t,this,[[1,13]])}),r=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(t){ny(i,n,o,a,c,"next",t)}function c(t){ny(i,n,o,a,c,"throw",t)}a(void 0)})},n.send=function(t,e,n){return r.apply(this,arguments)},n.sendByImage=function(t,e){new Image().src=r5(t,e)},t}();function nm(){nm=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function d(){}var v={};u(v,i,function(){return this});var g=Object.getPrototypeOf,y=g&&g(g(I([])));y&&y!==e&&r.call(y,i)&&(v=y);var _=d.prototype=p.prototype=Object._ttq_create(v);function m(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function nE(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}n_=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([ep()],n_);var nb=function(){function t(t){this.cookieExpireOption=eH(t)}var e,r,n=t.prototype;return n.genCookieID=function(){return tc()},e=nm().mark(function t(){return nm().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return eJ(i,"1",this.cookieExpireOption),t.abrupt("return",re(tj()?"/static/enable_cookie.js":"https://analytics.tiktok.com/i18n/pixel/enable_cookie"));case 2:case"end":return t.stop()}},t,this)}),r=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(t){nE(i,n,o,a,c,"next",t)}function c(t){nE(i,n,o,a,c,"throw",t)}a(void 0)})},n.enableCookie=function(){return r.apply(this,arguments)},n.enableFirstPartyCookie=function(t){if(t){eJ(i,"1",this.cookieExpireOption);var e=this.getAnonymousId();this.setAnonymousId(e||this.genCookieID())}},n.disableCookie=function(){eJ(i,"0",this.cookieExpireOption),eJ(a,"",Object.assign(this.cookieExpireOption,{expires:-1})),re(tj()?"/static/disable_cookie.js":"https://analytics.tiktok.com/i18n/pixel/disable_cookie")},n.setAnonymousId=function(t){var e=this.getAnonymousId()||t;e&&eJ(a,e.split(".")[0],this.cookieExpireOption)},n.getAnonymousId=function(){return eW(a)||""},n.canUseCookie=function(){try{return"0"!==eW(i)}catch(t){}return!1},n.resetExpires=function(){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var t={taskName:window.ttq._pf_tn,functionName:"resetExpires",start:performance.now()}}catch(t){}var e=eW(i);e&&eJ(i,e,this.cookieExpireOption);var r=this.getAnonymousId();r&&this.setAnonymousId(r);try{window.ttq&&window.ttq._ppf&&(t.end=performance.now(),window.ttq._ppf.push(t))}catch(t){}},t}();function nw(t,e){return(nw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}nb=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([ep(),(aF=eh(d.TTQ_GLOBAL_OPTIONS),function(t,e){aF(t,e,0)})],nb),(aU=cN||(cN={}))[aU.P0=4]="P0",aU[aU.P1=3]="P1",aU[aU.P2=2]="P2",aU[aU.P3=1]="P3";var nO="tt_hold_events",nI=function(t){function e(){var e;return e=t.apply(this,arguments)||this,e.consentMode=ci.UNKNOWN,e.queue=[],e.debounceUpdateCache=tp(function(){e.updateCache()},200,function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e)),e.handleHistoryQueue=ti(function(){var t=ew(nO);Array.isArray(t)&&(e.queue=e.queue.concat(t),e.changeQueueWithConsent())}),e}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,nw(e,t);var r=e.prototype;return r.on=function(e,r){t.prototype.on.call(this,e,r,{}),this.handleHistoryQueue()},r.setConsentMode=function(t){this.consentMode=t,this.changeQueueWithConsent()},r.changeQueueWithConsent=function(){switch(this.consentMode){case ci.REVOKE:this.cleanQueue();break;case ci.GRANT:this.releaseQueue(),this.cleanQueue();case ci.HOLD:case ci.UNKNOWN:}},r.getConsentMode=function(){return this.consentMode},r.cacheReportTask=function(t,e,r){void 0===r&&(r=cw.defaultReport),this.queue.push({url:t,data:e,type:r}),this.debounceUpdateCache()},r.cleanQueue=function(){this.queue=[],eO(nO)},r.updateCache=function(){this.queue&&this.queue.length>0&&eI(nO,this.queue)},r.releaseQueue=function(){var t=this;this.queue.sort(function(e,r){return t.getEventPriority(r.data)-t.getEventPriority(e.data)}),this.emit(cf.QUEUE,this.queue)},r.getEventPriority=function(t){return t.event&&t.event.length>0?cN.P0:t.action&&t.action.length>0?cN.P1:""===t.event?cN.P2:cN.P3},e}(rs);function nT(){return document.visibilityState}nI=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([ep()],nI),(aG=cx||(cx={})).CLICK="click",aG.SCROLL="scroll",aG.COOKIE_CHANGE="cookie_change",aG.PAGE_START="page_start",aG.URL_CHANGE="url_change",aG.SELF="self",aG.PIXEL_INIT="pixel_init",aG.PAGE_SHOW="page_show";var nS=function(t,e){return function(r,n){e(r,n,t)}},nR="75350340",nN=function(){function t(t,e){this.clickContext={type:"click",clickX:0,clickY:0,last_inter_relative_ts:0,seq:0},this.scrollContext={type:"scroll",scrollY:0,last_inter_relative_ts:0,seq:0},this.sessionLoadTS=0,this.last_page_start_relative_ts=0,this.last_pixel_init_relative_ts=0,this.inter_id="",this.INTER_ID_SEPARATOR="::",this.documentVisibleStateCode=0,this.hasInit=!1,this.eventEmitter=t,this.webContext=e,tJ(nR)&&this.subscribePixelInitEvent()}var e=t.prototype;return e.init=function(){this.subscribeEvents(),this.listenEvents()},e.subscribeEvents=function(){this.subscribeSessionCookieChangeEvent(),this.subscribeURLChangeEvent(),this.subscribeClickEvent(),this.subscribeScrollEvent()},e.listenEvents=function(){this.listenPageShowEvent()},e.initInterIdFromSessionCookie=function(t){try{var e=t.inter_id.split("::"),r=e[0].split(".");r[0],r[1],r[2];var n=e[1],o=e[2];this.updateSessionLoadTS(t,!1),this.updatePageStartTS(cx.PAGE_START,!1),this.updatePixelInitTS(!1),this.updateClickContext(function(t){try{var e=t.split(".");if(4!==e.length)return;var r=e[0],n=e[1],o=e[2],i=e[3];return{type:"click",clickX:Number(o),clickY:Number(i),last_inter_relative_ts:Number(r),seq:Number(n)}}catch(t){P(a5.CUSTOM_ERROR,t,{custom_name:"WebInterIdService",custom_enum:"getClickContextFromString"})}}(n),!1),this.updateScrollContext(function(t){try{var e=t.split(".");if(3!==e.length)return;var r=e[0],n=e[1],o=e[2];return{type:"scroll",scrollY:Number(o),last_inter_relative_ts:Number(r),seq:Number(n)}}catch(t){P(a5.CUSTOM_ERROR,t,{custom_name:"WebInterIdService",custom_enum:"getScrollContextFromString"})}}(o),!0)}catch(e){P(a5.CUSTOM_ERROR,e,{custom_name:"WebInterIdService",custom_enum:"initInterIdFromSessionCookie",extJSON:{message:""+t.inter_id}})}},e.generateInterId=function(t){try{return this.inter_id=""+this.assemblyPageContext()+this.INTER_ID_SEPARATOR+this.assemblyClickContext(this.clickContext)+this.INTER_ID_SEPARATOR+this.assemblyScrollContext(this.scrollContext),this.inter_id}catch(t){return P(a5.CUSTOM_ERROR,t,{custom_name:"WebInterIdService",custom_enum:"generateInterId"}),""}},e.updateClickContext=function(t,e){void 0===e&&(e=!0),this.clickContext=t,e&&this.setInterIdInPageSessionCookie(this.getInterId())},e.updateScrollContext=function(t,e){var r=this;void 0===e&&(e=!0),this.scrollContext=t,this.throttleScrollSetInCookieHandler||(this.throttleScrollSetInCookieHandler=J(function(){r.setInterIdInPageSessionCookie(r.getInterId())},1e3,{trailing:!0})),e&&this.throttleScrollSetInCookieHandler()},e.updatePageStartTS=function(t,e){void 0===e&&(e=!0);var r=this.getSessionLoadTS();if(0===r&&t===cx.PAGE_START){var n=parseInt(performance.now().toString(),10);this.last_page_start_relative_ts=0-n}else if(0!==r&&t===cx.PAGE_START){var o=parseInt(performance.now().toString(),10);this.last_page_start_relative_ts=B()-o-r}else this.last_page_start_relative_ts=B()-r;e&&this.setInterIdInPageSessionCookie(this.getInterId())},e.updateSessionLoadTS=function(t,e){void 0===e&&(e=!0);var r=t.sessionId.split("::")[0],n=this.getSessionLoadTS();n!==Number(r)&&(0===n&&this.updatePageStartTS(cx.PAGE_START,!1),this.setSessionLoadTS(r?Number(r):0),e&&this.setInterIdInPageSessionCookie(this.getInterId()))},e.updatePixelInitTS=function(t){void 0===t&&(t=!0);var e=this.getSessionLoadTS();0===e?this.last_pixel_init_relative_ts=0:this.last_pixel_init_relative_ts=B()-e,t&&this.setInterIdInPageSessionCookie(this.getInterId())},e.assemblyClickContext=function(t){return t.last_inter_relative_ts+"."+t.seq+"."+t.clickX+"."+t.clickY},e.assemblyScrollContext=function(t){return t.last_inter_relative_ts+"."+t.seq+"."+t.scrollY},e.assemblyPageContext=function(){return"visible"===nT()?this.documentVisibleStateCode=1:"prerender"===nT()?this.documentVisibleStateCode=-1:this.documentVisibleStateCode=0,this.documentVisibleStateCode+"."+this.last_page_start_relative_ts+"."+this.last_pixel_init_relative_ts},e.subscribeClickEvent=function(){var t=this;this.eventEmitter.on(cl.CLICK,function(e){var r=t.getSessionLoadTS(),n=function(t,e,r){var n,o;try{if(!1===t.isTrusted)return void A(a5.CUSTOM_INFO,{custom_name:"WebInterIdService",custom_enum:"untrusted_event",extJSON:{message:""+t.type}});return{type:"click",clickX:null!=(n=parseInt(t.pageX.toString(),10))?n:0,clickY:null!=(o=parseInt(t.pageY.toString(),10))?o:0,last_inter_relative_ts:B()-r,seq:e.seq+1}}catch(t){P(a5.CUSTOM_ERROR,t,{custom_name:"WebInterIdService",custom_enum:"getClickContextFromEvent"})}}(e,t.clickContext,r);n&&t.updateClickContext(n)},{})},e.subscribeScrollEvent=function(){var t=this;t1(cl.SCROLL,function(e){var r=t.getSessionLoadTS(),n=function(t,e,r){var n;try{if(!1===t.isTrusted)return void A(a5.CUSTOM_INFO,{custom_name:"WebInterIdService",custom_enum:"untrusted_event",extJSON:{message:""+t.type}});var o={type:"scroll",scrollY:null!=(n=parseInt(window.scrollY.toString(),10))?n:0,last_inter_relative_ts:B()-r,seq:e.seq+1};if(o.scrollY===e.scrollY)return void A(a5.CUSTOM_INFO,{custom_name:"WebInterIdService",custom_enum:"cache_scroll_pos"});return o}catch(t){P(a5.CUSTOM_ERROR,t,{custom_name:"WebInterIdService",custom_enum:"updateScrollContext",extJSON:{message:""+t.type}})}}(e,t.scrollContext,r);n&&t.updateScrollContext(n)},{throttle:!0,interval:200},{observerType:cl.SCROLL,pluginName:"WebInterIdService",target:window,environment:"window",listenEventTypes:[cl.SCROLL],mode:"append"})},e.subscribeSessionCookieChangeEvent=function(){var t=this;this.eventEmitter.on(cp.COOKIE_TTCSID_CHANGE,function(e){var r=t.getSessionLoadTS();if(0===r&&0===t.clickContext.seq&&0===t.scrollContext.seq&&e.inter_id)return void t.initInterIdFromSessionCookie(e);t.updateSessionLoadTS(e,0===r)},{})},e.subscribePixelInitEvent=function(){var t=this;this.eventEmitter.on(cp.HANDLE_CACHE,function(){var e,r;e=t9(),r=m(),Object.values(e).some(function(t){var e,n;return(null==(e=t.info)?void 0:e.firstPartyCookieEnabled)&&(null==(n=null==r?void 0:r._csid_config)?void 0:n.enable)})&&!1===t.hasInit&&(t.hasInit=!0,t.init()),t.updatePixelInitTS(!1)},{})},e.subscribeURLChangeEvent=function(){var t=this;this.eventEmitter.on(cp.URL_CHANGE,function(e,r){t.updatePageStartTS(cx.URL_CHANGE)},{})},e.listenPageShowEvent=function(){var t=this;"onpageshow"in window&&window.addEventListener("pageshow",function(e){if(e.persisted){var r=t.getInterId();t.updatePageStartTS(cx.PAGE_SHOW),A(a5.CUSTOM_INFO,{custom_name:"WebInterIdService",custom_enum:"BFCache",extJSON:{message:r+"|"+t.getInterId()}})}})},e.setInterIdInPageSessionCookie=function(t){var e=this.webContext.getPageCookieBasedSession();e.inter_id=t,this.webContext.setPageCookieBasedSession(e,cm.INTER_ID_TRIGGER)},e.setSessionLoadTS=function(t){this.sessionLoadTS=t},e.getSessionLoadTS=function(){return this.sessionLoadTS},e.getInterId=function(){return tJ(nR)&&this.isPerformanceNowSupported()?this.generateInterId(cx.SELF):""},e.isPerformanceNowSupported=function(){return"undefined"!=typeof globalThis&&"object"==typeof globalThis.performance&&"function"==typeof globalThis.performance.now},t}();nN=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([nS(0,eh(d.EVENT_EMITTER)),nS(1,eh(d.CONTEXT))],nN);var nx=function(){function t(t){var e=t.name,r=t.context,n=t.reporters;this.reporters=[],this.context=r,this.reporters=n,this.name=e}var e=t.prototype;return e.initStart=function(){},e.initEnd=function(){},e.adInfoInitStart=function(){},e.adInfoInitEnd=function(){},e.contextInitStart=function(){},e.contextInitEnd=function(){},e.pageUrlWillChange=function(t,e){},e.pageUrlDidChange=function(t,e){},e.pageDidLoad=function(){},e.pageWillLeave=function(t){},e.pageLcp=function(t){},e.pixelSend=function(t,e,r,n,o){},e.pixelDidMount=function(t){},e.patchEnd=function(){},t}();function nL(t,e){return(nL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var nA=function(t){function e(){return t.apply(this,arguments)||this}return e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,nL(e,t),e}(nx=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([ep()],nx));function nP(t,e){return(nP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var nC=function(t,e){return function(r,n){e(r,n,t)}},nk=function(t){function e(e,r){var n;return(n=t.call(this,{name:"Callback",reporters:r,context:e})||this).ttclidCookieValue="undefined"!=typeof document?eW(eD):"",n}return e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,nP(e,t),e.prototype.pixelDidMount=function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var e={taskName:window.ttq._pf_tn,functionName:"callback_plugin_pixelDidMount",start:performance.now()}}catch(t){}var r=em(),n=ey(eD,r.url,r.referrer);n&&this.ttclidCookieValue!==n&&eq(eD,n);try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}},e}(nA);nk=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([ep(),nC(0,eh(d.CONTEXT)),nC(1,eh(d.TTQ_REPORTERS))],nk);var nD={isHash:function(t){return!1},genIdentifierLabelByUserProperties:function(t){return{}}},nj={validatePhoneNumberLength:function(t){},parsePhoneNumberFromString:function(t){}},nM={tryDecodeHashedBase64String:function(t){return null},tryDecodeHashedBase64Hex:function(t){return null}},nF={checkEmailFormat:function(t){return!1},checkMDNEmailFormat:function(t){return!1}},nU=function(t){var e=t.parsePhoneNumberFromString,r=t.validatePhoneNumberLength;nj.parsePhoneNumberFromString=e,nj.validatePhoneNumberLength=r},nG=function(t){var e=t.isHash,r=t.genIdentifierLabelByUserProperties;nD.isHash=e,nD.genIdentifierLabelByUserProperties=r},nq=function(t){var e=t.tryDecodeHashedBase64String,r=t.tryDecodeHashedBase64Hex;nM.tryDecodeHashedBase64String=e,nM.tryDecodeHashedBase64Hex=r},nH=function(t){var e=t.checkEmailFormat,r=t.checkMDNEmailFormat;nF.checkEmailFormat=e,nF.checkMDNEmailFormat=r},nV=function(t){var e=t.parsePhoneNumberFromString,r=t.validatePhoneNumberLength,n=t.isHash,o=t.genIdentifierLabelByUserProperties,i=t.tryDecodeHashedBase64String,a=t.tryDecodeHashedBase64Hex,c=t.checkEmailFormat,u=t.checkMDNEmailFormat,s=t.sha256;nH({checkEmailFormat:c,checkMDNEmailFormat:u}),nq({tryDecodeHashedBase64String:i,tryDecodeHashedBase64Hex:a}),nG({isHash:n,genIdentifierLabelByUserProperties:o}),nU({parsePhoneNumberFromString:e,validatePhoneNumberLength:r}),$(s)},nB=function(t,e,r){void 0===e&&(e=""),void 0===r&&(r=nj.parsePhoneNumberFromString);var n=t,o=e?r(t,e):r(t);return o?n="86"===o.countryCallingCode?o.nationalNumber:o.number:t.replace(/[^0-9]/g,"").length>0&&(n=t.replace(/[^0-9]/g,"")),n},nK=["(null)","","''\"",void 0,"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","eb045d78d273107348b0300c01d29b7552d622abbc6faf81b3ec55359aa9950c","not set",null,"6181738008c985a1b5f106b796c98e719efcc3c0ff68ddcd14a049825f4900a8","2a539d6520266b56c3b0c525b9e6128858baeccb5ee9b694a2906e123c8d6dd3","c6e52c372287175a895926604fa738a0ad279538a67371cd56909c7917e69ea1","None","74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c019892f982b90b","f24f02d3c35894296522abac8c4b2439b1c1b650e1fb4c97c0f3c50b580b0a3c","no","a683c5c5349f6f7fb903ba8a9e7e55d0ba1b8f03579f95be83f4954c33e81098","f18a2548c063c5a2b1560c6f2b9ec44bf9ed9017884404016d74f330119aaefe","449f06574cd639e1826848ff5d70ba95904574be84f34e61baa526d517dfb493","fcbcf165908dd18a9e49f7ff27810176db8e9f63b4352213741664245224f8aa","NA","bc857c49633bbc75644c51f36b16b2f768cc0ee13f65402ec7c32c96308272dd","42cbf37902c6911d7b4e371fe8f8708a0ceda6946249d4a3e23de8d5e60ae8b7"];function nY(t,e){return(nY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var nW=function(t){function e(e){var r=e.name,n=e.context,o=e.reporters;return t.call(this,{name:r,reporters:o,context:n})||this}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,nY(e,t);var r=e.prototype;return r.setIdentifyUtils=function(t){var e=t.isHash,r=t.sha256,n=t.genIdentifierLabelByUserProperties,o=t.tryDecodeHashedBase64String,i=t.tryDecodeHashedBase64Hex,a=t.validatePhoneNumberLength,c=t.parsePhoneNumberFromString,u=t.checkEmailFormat,s=t.checkMDNEmailFormat,l=t.getCookieDeprecationLabel,f=t.getAllTopics;nV({isHash:e,sha256:r,genIdentifierLabelByUserProperties:n,tryDecodeHashedBase64String:o,tryDecodeHashedBase64Hex:i,validatePhoneNumberLength:a,parsePhoneNumberFromString:c,checkEmailFormat:u,checkMDNEmailFormat:s}),this.parsePhoneNumberFromString=c,this.checkMDNEmailFormat=s,this.checkEmailFormat=u,this.sha256=r,this.getCookieDeprecationLabel=void 0===l?function(){}:l,this.getAllTopics=void 0===f?function(){}:f},r.baseHandleUserProperties=function(t,e){var r=this;try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var n={taskName:window.ttq._pf_tn||"identify_encryption",functionName:window.ttq._pf_tn&&"identify_encryption",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="identify_encryption")}}catch(t){}if(t){var o=this.identifyParamsFormattedInfo(t),i=this.identifyParamsFormattedInfoV2(t),a=nD.genIdentifierLabelByUserProperties(e);this.handlePIIDiagnostics(i),Object.entries(t).forEach(function(e){var n=e[0],o=e[1],a=void 0===o?"":o;if(a){var c=String(a);if(["email","phone_number","sha256_email","sha256_phone_number"].includes(n)){var u=r.getUserDataFormatInfoV2KeyName(n),s=nM.tryDecodeHashedBase64Hex(c);if(null!==s)t[n]=s,null!==u&&(i=r.updateUserDataFormatV2Label(u,a7.BASE64_HEX_HASHED,i));else{var l=nM.tryDecodeHashedBase64String(c);l&&(t[n]=l,null!==u&&(i=r.updateUserDataFormatV2Label(u,a7.BASE64_STRING_HASHED,i)))}}switch("zip_code"===n&&c&&(nD.isHash(c)?i=r.updateUserDataFormatV2Label("zip_code",a7.ZIP_CODE_IS_HASHED,i):(i=r.updateUserDataFormatV2Label("zip_code",a7.ZIP_CODE_IS_NOT_HASHED,i),r.isZipFromUs(t)?(t.zip_code=r.sha256(r.truncateString(c,5)),i=r.updateUserDataFormatV2Label("zip_code",a7.ZIP_CODE_IS_US,i)):(t.zip_code=r.sha256(c),i=r.updateUserDataFormatV2Label("zip_code",a7.ZIP_CODE_IS_NOT_US,i)))),n){case"email":t.email=nD.isHash(c)&&!r.checkEmailFormat(c)?c:r.sha256(r.handleEmail(c));break;case"eb_email":t.eb_email=nD.isHash(c)&&!r.checkEmailFormat(c)?c:r.sha256(r.handleEmail(c));break;case"phone_number":t.phone_number=nD.isHash(c)?c:r.sha256(r.handlePhoneNumber(c));break;case"eb_phone_number":t.eb_phone_number=r.sha256(r.handlePhoneNumber(c));break;case"auto_email":t.auto_email=r.sha256(r.handleEmail(c));break;case"auto_phone_number":t.auto_phone_number=r.sha256(r.handlePhoneNumber(c));break;case"first_name":t.first_name=nD.isHash(c)?c:r.sha256(c);break;case"last_name":t.last_name=nD.isHash(c)?c:r.sha256(c);break;case"city":t.city=r.truncateString(c,80);break;case"state":t.state=r.truncateString(c,80);break;case"country":t.country=r.truncateString(c,80);break;default:return}}}),t.sha256_email&&(t.email=this.handleCheckHashedEmailValue(String(t.sha256_email),o)),t.sha256_phone_number&&(t.phone_number=this.handleCheckHashedPhoneValue(String(t.sha256_phone_number),o));try{window.ttq&&window.ttq._ppf&&(n.end=performance.now(),window.ttq._ppf.push(n),"identify_encryption"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}return{userProperties:t,userDataFormat:o,userDataFormatV2:i,identifierLabel:a}}},r.identifyParamsFormattedInfo=function(t){var e=this,r={},n=/^sha256_(.*)$/;return Object.entries(t).forEach(function(t){var o=t[0],i=t[1],a=String(void 0===i?"":i),c=o.match(n);switch(o){case"email":e.handleEmailFormat(a,o,r);break;case"phone_number":e.handlePhoneNumberFormat(a,"phone_number",r);break;case"auto_email":e.handleEmailFormat(a,"auto_email",r);break;case"auto_phone_number":e.handlePhoneNumberFormat(a,"auto_phone_number",r);break;case(c||{}).input:var u=null==c?void 0:c.pop();u&&q.includes(u)&&(r[u]=[a9.HASHED]);break;case"first_name":case"last_name":case"city":case"state":case"country":case"zip_code":case"partner_id":e.handleNewPiisFormat(a,o,r);break;default:r[o]=[a9.CORRECT_FORMAT]}}),r},r.identifyParamsFormattedInfoV2=function(t){var e=this,r={};return Object.entries(t).forEach(function(t){var n=t[0],o=t[1],i=String(void 0===o?"":o);switch(n){case"email":e.handlePixelValidation(i,H.EMAIL_IS_HASHED,r);break;case"phone_number":e.handlePixelValidation(i,H.PHONE_IS_HASHED,r);break;case"sha256_email":e.handlePixelValidation(i,H.SHA256_EMAIL,r);break;case"sha256_phone_number":e.handlePixelValidation(i,H.SHA256_PHONE,r);break;case"first_name":case"last_name":case"city":case"state":case"country":case"zip_code":case"partner_id":break;default:r[n]=[a7.UNKNOWN_INVALID]}}),r},r.updateUserDataFormatV2Label=function(t,e,r){var n,o;return(null===r[t]||void 0===r[t]||(null==(n=r[t])?void 0:n.includes(a7.UNKNOWN_INVALID)))&&(r[t]=[]),null==(o=r[t])||o.push(e),r},r.getUserDataFormatInfoV2KeyName=function(t){return({email:"email_is_hashed",phone_number:"phone_is_hashed",sha256_email:"sha256_email",sha256_phone_number:"sha256_phone",zip_code:"zip_code"})[t]||null},r.handlePIIDiagnostics=function(t){},r.handleEmail=function(t){return t.toLowerCase()},r.handlePhoneNumber=function(t,e){return void 0===e&&(e=this.parsePhoneNumberFromString),nB(t,"",e)},r.handleCheckHashedEmailValue=function(t,e,r){return(void 0===r&&(r=this.checkEmailFormat),e.email=e.email||[],nD.isHash(t))?(null==e||e.email.push(a9.HASHED_CORRECT),t):r(t)?(null==e||e.email.push(a9.PLAINTEXT_EMAIL),this.sha256(this.handleEmail(String(t)))):(null==e||e.email.push(a9.HASHED_ERR),this.sha256(t))},r.handleCheckHashedPhoneValue=function(t,e,r){return(void 0===r&&(r=this.parsePhoneNumberFromString),e.phone_number=e.phone_number||[],nD.isHash(t))?(null==e||e.phone_number.push(a9.HASHED_CORRECT),t):r(t)?(e.phone_number.push(a9.PLAINTEXT_PHONE),this.sha256(this.handlePhoneNumber(String(t),r))):(null==e||e.phone_number.push(a9.HASHED_ERR),this.sha256(t))},r.handlePixelValidation=function(t,e,r){r[e]=[],nK.includes(t)&&r[e].push(a7.FILTER_EVENTS),t&&nD.isHash(t)&&r[e].push(a7.HASHED),t&&this.checkEmailFormat(t)&&r[e].push(a7.PLAIN_EMAIL),t&&this.checkMDNEmailFormat(t)&&r[e].push(a7.PLAIN_MDN_EMAIL),t&&this.parsePhoneNumberFromString(t)&&r[e].push(a7.PLAIN_PHONE),t&&0===r[e].length&&r[e].push(a7.UNKNOWN_INVALID)},r.isZipFromUs=function(t){var e;return(null==(e=t.country)?void 0:e.toLowerCase())==="us"},r.truncateString=function(t,e){var r=Array.from(t);return r.length<=e?t:r.slice(0,e).join("")},r.handlePhoneNumberFormat=function(t,e,r){var n=this.handleCheckPhoneNumber(String(t),this.parsePhoneNumberFromString);r[e]=n},r.handleCheckPhoneNumber=function(t,e){void 0===e&&(e=this.parsePhoneNumberFromString);var r=[];return t?nD.isHash(t)?r.push(a9.HASHED):e(t)?r.push(a9.CORRECT_FORMAT):r.push(a9.WRONG_FORMAT):r.push(a9.EMPTY_VALUE),r},r.handleCheckEmail=function(t,e){void 0===e&&(e=this.checkEmailFormat);var r=[];return t?nD.isHash(t)?r.push(a9.HASHED):e(t)?r.push(a9.CORRECT_FORMAT):r.push(a9.WRONG_FORMAT):r.push(a9.EMPTY_VALUE),r},r.handleEmailFormat=function(t,e,r){var n=this.handleCheckEmail(String(t),this.checkEmailFormat);r&&r[e]&&(r[e]||[]).includes(a9.HASHED)||(r[e]=n)},r.handleNewPiisFormat=function(t,e,r){t&&(r[e]=[a9.CORRECT_FORMAT])},e}(nA);function nJ(){nJ=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function d(){}var v={};u(v,i,function(){return this});var g=Object.getPrototypeOf,y=g&&g(g(I([])));y&&y!==e&&r.call(y,i)&&(v=y);var _=d.prototype=p.prototype=Object._ttq_create(v);function m(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function nX(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}function nz(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){nX(i,n,o,a,c,"next",t)}function c(t){nX(i,n,o,a,c,"throw",t)}a(void 0)})}}function nQ(t,e){return(nQ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var nZ=function(t,e){return function(r,n){e(r,n,t)}},n$=function(t){function e(e,r){var n;return(n=t.call(this,{name:"Identify",reporters:r,context:e})||this).init(),n}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,nQ(e,t);var r,n,o=e.prototype;return o.init=function(){var t=this;return this.pluginPromise||(A(a5.IDENTIFY_INIT_START),this.pluginPromise=re(tj()?"/static/identify.js":"https://analytics.tiktok.com/i18n/pixel/static/identify_b46e7c41.js").then(function(){t.detectTopics(),A(a5.IDENTIFY_INIT_END)}).catch(function(){var t=Error("Loading chunk identify failed.\n(error: "+window.location.host+"/static/identify.js)");return t.name="ChunkLoadError",Promise.reject(t)})),this.pluginPromise},r=nz(nJ().mark(function t(e,r){return nJ().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return",void 0);case 2:return t.next=4,this.init();case 4:return t.abrupt("return",this.baseHandleUserProperties(e,r));case 5:case"end":return t.stop()}},t,this)})),o.handleUserProperties=function(t,e){return r.apply(this,arguments)},o.handlePIIDiagnostics=function(t){try{var e=t.email_is_hashed,r=void 0===e?[]:e,n=t.sha256_email,o=void 0===n?[]:n,i=t.phone_is_hashed,a=void 0===i?[]:i,c=t.sha256_phone,u=void 0===c?[]:c;if(r.includes(a7.UNKNOWN_INVALID)||o.includes(a7.UNKNOWN_INVALID))return void C(cy.INVALID_EMAIL_FORMAT);if(a.includes(a7.UNKNOWN_INVALID)||u.includes(a7.UNKNOWN_INVALID))return void C(cy.INVALID_PHONE_NUMBER_FORMAT);if(r.includes(a7.FILTER_EVENTS)||o.includes(a7.FILTER_EVENTS))return void C(cy.INVALID_EMAIL_INFORMATION);if(a.includes(a7.FILTER_EVENTS)||u.includes(a7.FILTER_EVENTS))return void C(cy.INVALID_PHONE_NUMBER_INFORMATION)}catch(t){}},n=nz(nJ().mark(function t(){var e,r;return nJ().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.getCookieDeprecationLabel();case 3:return e=t.sent,t.next=6,this.getAllTopics();case 6:(r=t.sent)&&A(a5.CUSTOM_INFO,{custom_name:"topics",extJSON:{cookie_label:String(e),stack:r.toString()}}),t.next=12;break;case 10:t.prev=10,t.t0=t.catch(0);case 12:case"end":return t.stop()}},t,this,[[0,10]])})),o.detectTopics=function(){return n.apply(this,arguments)},e}(nW);n$=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([ep(),nZ(0,eh(d.CONTEXT)),nZ(1,eh(d.TTQ_REPORTERS))],n$),(aq=cL||(cL={})).ERROR_FORMAT="error_format",aq.OVER_LENGTH="over_length_3e4",aq.FILTER_SENSITIVE_FIELDS="filter_sensitive_fields";var n0="form_detail_error";(aH=cA||(cA={})).GET_ELEMENTS_ERROR="get_elements_error",aH.INIT_ERROR="init_error",aH.ASSEMBLE_FORM_DETAIL_ERROR="assemble_form_detail_error",aH.DETECT_FORM_ELEMENT_ERROR="detect_form_element_error",aH.GET_OVERALL_FORM_DETAIL_ERROR="get_overall_form_detail_error",aH.FORM_OBSERVER_ERROR="form_observer_error",aH.OVER_LENGTH="over_length_3e4",(aV=cP||(cP={})).METADATA="Metadata",aV.CLICK="Click",(aB=cC||(cC={})).AUTO_COLLECTION="AUTO_COLLECTION",aB.AUTO_FORM="AUTO_FORM",aB.AUTO_CLICK="AUTO_CLICK",aB.AUTO_VC="AUTO_VC",aB.AUTO_VC_REVERSE="AUTO_VC_REVERSE",(aK=ck||(ck={})).AUTO_FORM="form_rules",aK.AUTO_VC="vc_rules",aK.AUTO_VC_REVERSE="vc_rules_reverse",(aY=cD||(cD={})).PAGE_LEAVE="PageLeave",aY.PAGE_VIEW="PageView",aY.DOM_CHANGE="DomChange",aY.URL_CHANGE="UrlChange",aY.CLICK="Click",aY.SCROLL="Scroll";var n1=["AnatomicalStructure","AnatomicalSystem","ApprovedIndication","ArriveAction","Artery","BioChemEntity","BloodTest","Bone","BorrowAction","BrainStructure","BrokerageAccount","CDCPMDRecord","ChemicalSubstance","CovidTestingFacility","DDxElement","DepartAction","DepositAccount","DiagnosticLab","DiagnosticProcedure","Diet","DietarySupplement","DoseSchedule","ElementarySchool","HighSchool","ExercisePlan","Gene","GovernmentBenefitsType","GovernmentService","HealthAspectEnumeration","HealthInsurancePlan","HealthPlanCostSharingSpecification","HealthTopicContent","Hospital","ImagingTest","InfectiousAgentClass","InvestmentFund","InvestmentOrDeposit","Invoice","Joint","LendAction","LifestyleModification","Ligament","LoanOrCredit","LymphaticVessel","MaximumDoseSchedule","MedicalAudience","MedicalAudienceType","MedicalCause","MedicalCode","MedicalCondition","MedicalConditionStage","MedicalContraindication","MedicalDevice","MedicalEntity","MedicalEvidenceLevel","MedicalGuidelineContraindication","MedicalIndication","MedicalIntangible","MedicalObservationalStudy","MedicalOrganization","MedicalProcedure","MedicalProcedureType","MedicalRiskCalculator","MedicalRiskFactor","MedicalRiskScore","MedicalSign","MedicalSignOrSymptom","MedicalStudy","MedicalSymptom","MedicalTest","MedicalTestPanel","MedicalTherapy","MedicalTrial","MiddleSchool","MoneyTransfer","Muscle","Nerve","OccupationalTherapy","Order","PalliativeProcedure","ParentAudience","PathologyTest","Patient","PeopleAudience","Person","Pharmacy","PhysicalActivity","PhysicalTherapy","Physician","PoliticalParty","Preschool","PreventionIndication","Protein","PsychologicalTreatment","RadiationTherapy","RecommendedDoseSchedule","ReportedDoseSchedule","School","Substance","SuperficialAnatomy","SurgicalProcedure","Text","TherapeuticProcedure","TreatmentIndication","URL","Vein","Vessel","VitalSign","WorkersUnion","PostalAddress","AddressLocality","StreetAddress"];(aW=cM||(cM={})).V1="v1",aW.V2="v2";var n2={IRRELEVANT_KEYWORDS:new Set(["CLOSE","OPEN"]),TERMINATION_TAGS:new Set(["UL","OL","BODY","HTML","DOCUMENT","MAIN"]),VALID_IMG_KEYWORDS:new Set(["https","http","product","goods","img","image","jpg","jpeg","png","webp"]),INVALID_IMG_KEYWORDS:new Set(["icon","logo","svg","gif"]),DYNAMIC_IMAGE_ATTRS:["data-src","data-original"],INVALID_LINK_PATTERNS:[],VALID_LINK_PATTERNS:[/^https?:\/\//],EXCLUDE_CLASSES:new Set(["hover","active","focus","current","first","last"]),MAIN_IMG_MIN_SIZE:100,MAX_TRAVERSE_LAYERS:10,MAX_IMG_COUNT:6,HIGH_SIZE_THRESHOLD:.8,SKIP_ELEMENT:new Set(["SVG","POLYGON"]),SIBLING_SIMILARITY_THRESHOLD:.7,SIBLING_NODE_COUNT_THRESHOLD:10,SIMILAR_WIDTH_THRESHOLD:.1,SIMILAR_HEIGHT_THRESHOLD:.4,PRIORITY_CONFIG:{destination:["composedPath","container"],image_url:["composedPath","container"],inner_text:["container","composedPath"]},MIN_SIZE_ABSOLUTE_VALUE:100,MAX_INNER_TEXT_LENGTH:2e3},n3={MONEY_SYMBOLS:new Set(["$","\xa5","\xa3","₩","₫","﷼","€","฿","₹","₽","zł","₦","د.إ","₱","TL","JPY","EUR","GBP","INR","BRL","CAD ","AUD","RUB","MXN","KRW","TRY","RM","SEK","THB","SGD","ARS",":-","RS","円"]),MIN_IMG_SIZE:30,MAX_COMPRESS_STRING_LENGTH:200,INVALID_DATA_SIMILARITY_THRESHOLD:.6,MAX_PRODUCTS_COUNT:8};(aJ=cF||(cF={})).COMPOSED_PATH="composedPath",aJ.FIND_PRODUCT_CARD="findProductCard",aJ.CHECKOUT="checkout";var n6="checkout",n5=new Set(["destination","image_url","from"]),n4=new Set(["x","y","num_child_buttons","timestamp","xpath","tag","from","destination"]),n8=((cj={})[cS.EMAIL]=rI,cj[cS.PASSPORT]=rR,cj[cS.ID_SSN]=rS,cj[cS.CREDIT_CARD]=rT,cj[cS.DRIVING_LICENSE]=rN,cj[cS.PHONE]=rO,cj);function n9(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return n7(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n7(t,e)}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n7(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=function(t,e){if(!t||!e)return 0;for(var r=t.length,n=e.length,o=Array.from({length:r+1},function(){return Array(n+1).fill(0)}),i=0;i<=r;i++)o[i][0]=i;for(var a=0;a<=n;a++)o[0][a]=a;for(var c=1;c<=r;c++)for(var u=1;u<=n;u++)t[c-1]===e[u-1]?o[c][u]=o[c-1][u-1]:o[c][u]=Math.min(o[c-1][u]+1,o[c][u-1]+1,o[c-1][u-1]+1);return o[r][n]}(o.value,i.value)?(l++,f+=1):f+=2}while(!o.done||!i.done);return l/f}function ou(t){if(!t)return null;for(var e,r=n9(n2.DYNAMIC_IMAGE_ATTRS);!(e=r()).done;){var n=e.value,o=t.getAttribute(n);if(o&&oo(o))return o}if(t.src&&oo(t.src))return t.src;var i=t.getAttribute("srcset");if(i){var a=i.split(",").find(function(t){return oo(t.trim().split(" ")[0])});if(a)return a.split(" ")[0]}return null}function os(t){if(!(t instanceof HTMLAnchorElement))return null;var e=t.href;return!function(t){if(!t)return!1;var e=t.trim();return n2.VALID_LINK_PATTERNS.some(function(t){return new RegExp(t).test(e)})&&!n2.INVALID_LINK_PATTERNS.some(function(t){return new RegExp(t).test(e)})}(e)?null:e}function ol(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function og(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=n2.SIBLING_SIMILARITY_THRESHOLD?t+1:t-1:u>=n2.SIBLING_SIMILARITY_THRESHOLD?t+1:t-1},0),u=t.getElementsByTagName("a").length>0,s=t.getElementsByTagName("img").length>0;return e.RequiredLinkData?c>=0&&u:e.RequiredImageData?c>=0&&s:c>0&&(u||s)}function oI(t){if(!t)return 0;var e=window.innerHeight||document.documentElement.clientHeight;return t.offsetHeight/e>n2.HIGH_SIZE_THRESHOLD?2:t.offsetHeight0&&e.some(function(e){return t.toLowerCase()===e.toLowerCase()})}(n,e)&&(r[n]=oN(t[n],e));return r}function ox(t){return Array.isArray(t)?t.some(function(t){return ox(t)}):"string"==typeof t&&(t=t.toLowerCase().replace(/https?:\/\/schema\.org\//,""),n1.some(function(e){return t===e.toLowerCase()}))}var oL=["form","[id*=form], [class*=form]"],oA=["label"],oP=["input,select,textarea"],oC=["radio","checkbox"],ok=["hidden","reset","submit","password"];function oD(t,e){try{for(var r=0;r0)return Array.from(n)}return[]}catch(t){return P(a5.CUSTOM_ERROR,t,{custom_name:n0,custom_enum:cA.GET_ELEMENTS_ERROR}),[]}}function oj(t){var e="";return!function t(r){for(;r;)r.nodeType===Node.TEXT_NODE?e+=r.textContent:"SELECT"!==r.nodeName&&r.firstChild&&t(r.firstChild),r=r.nextSibling}(t.firstChild),e.replace(/[\t\n]/g,"").trim()}function oM(t){if(!t)return!1;var e=window.getComputedStyle(t);return!("none"===e.display||"visible"!==e.visibility||function t(e){return!(!e||e.isSameNode(document.body)||e.isSameNode(document))&&("0"==window.getComputedStyle(e).opacity||t(e.parentElement))}(t))&&(0!==t.offsetWidth||0!==t.offsetHeight)}function oF(t){var e=t.getAttribute("type");return!!e&&ok.indexOf(e)>-1}function oU(t){return t&&(/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+)/gi.test(t)||/(\+?0?86-?)?1[3-9]\d{9}/g.test(t)||/(\+\d{1,2}\s?)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}/g.test(t)||/^[\-!$><-==&_\/\?\.,0-9:; \]\[%~\"\{\}\)\(\+\@\^\`]/g.test(t)||n1.some(function(e){return t.toLowerCase().indexOf(e.toLowerCase())>-1}))?"__Text__":t}(aX=cU||(cU={}))[aX.CONTAIN=0]="CONTAIN",aX[aX.ID=1]="ID",aX[aX.SELECTOR=2]="SELECTOR";var oG=function(){function t(t){var e=this;this.formUpdateHandlers=[],this.answerMap={},t.find(function(t){var r=e.getRules(t);return!!r&&(e.rules=r,!0)}),this.init()}var e=t.prototype;return e.getRules=function(t){var e=t.plugins&&t.plugins.AutoConfig;return e&&e[ck.AUTO_FORM]},e.init=function(){var t=this;try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var e={taskName:window.ttq._pf_tn,functionName:"initAutoForm_init",start:performance.now()}}catch(t){}try{this.forms=this.detectFormElement(),this.forms&&this.forms.forEach(function(e){e.formDetail=t.assembleFormDetail(e),t.startFormObserver(e,t.formUpdateHandlers)})}catch(t){P(a5.CUSTOM_ERROR,t,{custom_name:n0,custom_enum:cA.INIT_ERROR})}try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}},e.getOverallFormDetail=function(){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var t={taskName:window.ttq._pf_tn,functionName:"initAutoForm_getOverallFormDetail",start:performance.now()}}catch(t){}var e="[]";try{this.forms&&this.forms.length>0&&(this.forms.some(function(t){var e=t.el;return!document.body.contains(e)})&&this.init(),e=JSON.stringify(this.forms.map(function(t){return t.formDetail}).filter(function(t){return t})))}catch(t){P(a5.CUSTOM_ERROR,t,{custom_name:n0,custom_enum:cA.GET_OVERALL_FORM_DETAIL_ERROR})}try{window.ttq&&window.ttq._ppf&&(t.end=performance.now(),window.ttq._ppf.push(t))}catch(t){}return e},e.addFormUpdateHandler=function(t){this.formUpdateHandlers.push(t)},e.startFormObserver=function(t,e){var r=this;try{var n=tp(function(){var n,o=r.assembleFormDetail(t);(!t.formDetail||o&&(n=t.formDetail,Object.keys(function t(e,r){var n={};for(var o in e)if(e.hasOwnProperty(o)&&!r.hasOwnProperty(o))n[o]=e[o];else if(e.hasOwnProperty(o)&&r.hasOwnProperty(o)&&e[o]!==r[o])if("object"==typeof e[o]&&"object"==typeof r[o]){var i=t(e[o],r[o]);Object.keys(i).length>0&&(n[o]=i)}else n[o]=e[o];for(var a in r)r.hasOwnProperty(a)&&!e.hasOwnProperty(a)&&(n[a]=r[a]);return n}(o,n)).length>0))&&(t.formDetail=o,e.forEach(function(e){return e.call(r,t.formDetail)}))},2e3,this);if(t.el.parentNode){var o=t.el.parentNode;this.observer&&this.observer.disconnect(),this.observer=new MutationObserver(n),this.observer.observe(o,{attributes:!0,childList:!0,subtree:!0}),o.addEventListener("click",n,{capture:!0})}}catch(t){P(a5.CUSTOM_ERROR,t,{custom_name:n0,custom_enum:cA.FORM_OBSERVER_ERROR})}},e.detectFormElement=function(){try{var t,e,r=[0,0,0],n=(t=this.rules,(e=oD(t||oL,document)).filter(function(t){return!e.some(function(e){return e.contains(t)&&e!==t})}));if(!n)return[];var o=n.map(function(t){return{el:t,questions:[]}});return o.forEach(function(t){var e,n,o=(e=t.el,oD(oA,e)),i=new Set([]);o.forEach(function(e){var n=function(t,e){var r=oD(oP,t);if(r&&r.length)return{els:r,from:cU.CONTAIN};var n=t.getAttribute("for");if(n&&(r=oD(["input[id='"+n+"'],select[id='"+n+"'],textarea[id='"+n+"']"],e)))return{els:r,from:cU.ID};return!1}(e,t.el);if(n){var o=n.els,a=n.from,c=o.filter(function(t){return!oF(t)}).map(function(t){return i.add(t),{el:t,from:a}});c&&c.length&&(r[a]=1,t.questions.push({el:e,answers:c}))}}),(n=t.el,oD(oP,n)).filter(function(t){return!oF(t)}).forEach(function(e){if(!i.has(e)){r[cU.SELECTOR]=1;var n,o=(n=t.el,function t(e){return null==e||e.isSameNode(n)?n:oj(e).length>0?e:t(e.parentNode)}(e.parentNode));t.questions.push({el:o,answers:[{el:e,from:cU.SELECTOR}]})}})}),A(a5.CUSTOM_INFO,{custom_name:"form_detail_answer_from",custom_enum:r.join("")}),o}catch(t){return P(a5.CUSTOM_ERROR,t,{custom_name:n0,custom_enum:cA.DETECT_FORM_ELEMENT_ERROR}),[]}},e.calculateQuestionFilledTime=function(t){var e=t.el,r=t.answers,n=ot(e),o=r.reduce(function(t,e){var r=e.el,n=r.getAttribute("type");return n&&oC.indexOf(n.toLowerCase())>-1?t+","+r.checked:t+","+r.value},"");this.answerMap[n]||(this.answerMap[n]={defaultValue:o,value:o});var i=this.answerMap[n],a=i.defaultValue,c=i.filledTime;return(this.answerMap[n].value=o,a===o)?void delete this.answerMap[n].filledTime:c||(this.answerMap[n].filledTime=+new Date)},e.assembleFormDetail=function(t){var e=this,r=t.el,n=t.questions;try{var o={xpath:ot(r),id:r.id,name:oU(r.getAttribute("name")),tag:r.tagName.toLowerCase(),class_name:r.className,questions:[],width:r.offsetWidth,height:r.offsetHeight,is_visible:oM(r)};return o.questions=n.map(function(t){var r=t.el,n=t.answers,o={xpath:ot(r),id:r.id,name:oU(oj(r)),tag:r.tagName.toLowerCase(),class_name:r.className,filled_time:e.calculateQuestionFilledTime(t),answers:[],width:r.offsetWidth,height:r.offsetHeight,is_visible:oM(r)};return n.forEach(function(t){var e=t.el,r=t.from;e&&"SELECT"===e.tagName.toUpperCase()?o.answers=o.answers.concat(Array.from(e.querySelectorAll("option")).map(function(t){return{xpath:ot(t),id:t.id,name:oU(t.value||t.innerText),tag:t.tagName.toLowerCase(),class_name:t.className,from:r,width:t.offsetWidth,height:t.offsetHeight,is_visible:oM(e)}})):o.answers.push({xpath:ot(e),id:e.id,name:oU(e.getAttribute("name")),tag:e.tagName.toLowerCase(),class_name:e.className,input_type:e.getAttribute("type"),placeholder:oU(e.getAttribute("placeholder")),from:r,width:e.offsetWidth,height:e.offsetHeight,is_visible:oM(e)})}),o}),o}catch(t){P(a5.CUSTOM_ERROR,t,{custom_name:n0,custom_enum:cA.ASSEMBLE_FORM_DETAIL_ERROR});return}},t}(),oq=["United States","US","Canada","CA","Australia","AU","Mexico","MX","Argentina","AR","Chile","CL","Colombia","CO","Fiji","FJ","Liberia","LR","Namibia","NA","New Zealand","NZ","Singapore","SG","Solomon Islands","SB","Suriname","SR","South Africa","ZA","Barbados","BB","Belize","BZ","Cuba","CU","Dominican Republic","DO","Guyana","GY","Jamaica","JM","Cayman Islands","KY","Trinidad and Tobago","TT","Tuvalu","TV","Zimbabwe","ZW","United Kingdom","GB","Egypt","EG","Falkland Islands","FK","Gibraltar","GI","Guernsey","GG","Isle of Man","IM","Jersey","JE","Lebanon","LB","Saint Helena","SH","Syria","SY","Sudan","SD","Japan","JP","China","CN","Japan","JP","CN","South Korea","KR","Philippines","PH","Cuba","CU","Sweden","SE","Norway","NO","Denmark","DK","Iceland","IS","Costa Rica","CR","El Salvador","SV","Bolivia","BO","Venezuela","VE","Bahamas","BS","Brunei","BN","Ethiopia","ET","Eritrea","ER","Iran","IR","Oman","OM","Qatar","QA","Saudi Arabia","SA","Yemen","YE","Bulgaria","BG","Kyrgyzstan","KG","Central African CFA franc zone","XAF","West African CFA franc zone","XOF"].map(function(t){return t.toUpperCase()}),oH=["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTC","BTN","BWP","BYN","BYR","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNH","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EEK","EGP","ERN","ETB","ETH","EUR","FJD","FKP","GBP","GEL","GGP","GHC","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","IMP","INR","IQD","IRR","ISK","JEP","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LTC","LTL","LVL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RMB","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRL","TRY","TTD","TVD","TWD","TZS","UAH","UGX","USD","UYI","UYU","UYW","UZS","VEF","VES","VND","VUV","WST","XAF","XBT","XCD","XOF","XPF","XSU","XUA","YER","ZAR","ZMW","ZWD","ZWL"];function oV(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return oB(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return oB(t,e)}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function oB(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0?r:null}catch(t){return P(a5.CUSTOM_ERROR,t,{custom_name:"updateParameterInferenceData",custom_enum:"enhancement_parameter_inference"}),null}},o0=function(t,e){var r=null;for(var n in e)if(t.includes(n))return e[n];return null},o1=function(t,e){var r=function(t,e){try{for(var r,n=document.evaluate(t,document,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE,null),o=null;r=n.iterateNext();)/\d/.test(r.innerText)&&(o=r);if(!o&&e)for(var i=document.getElementsByClassName(e),a=0;a=a.length-3&&(o=!0),o&&(r=r.slice(0,n-(a.length-1))+"."+r.slice(n-(a.length-1))),r}return null}(n):null,textContent:n}},o2=function(t){if(!t)return{currencyCode:null,currencyCodeFromeXpath:null};var e,r=null==(e=document.evaluate(t,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue)?void 0:e.textContent,n=((null==r?void 0:r.trim())?oH.includes(r.toUpperCase().trim()):null)?null==r?void 0:r.toUpperCase().trim():null;return{currencyCode:r,currencyCodeFromeXpath:n}},o3=function(t){if(!t)return{countryCode:null,countryCodeFromXpath:null};var e,r=null==(e=document.evaluate(t,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue)?void 0:e.textContent,n=((null==r?void 0:r.trim())?oq.includes(r.toUpperCase().trim()):null)?null==r?void 0:r.toUpperCase().trim():null;return{countryCode:r,countryCodeFromXpath:n}},o6=function(t){try{var e=new URL(t).hostname.split(".");for(var r in e)if(oq.includes(e[r].toUpperCase()))return e[r].toUpperCase()}catch(t){}return null},o5=function(t,e,r){try{if(t)for(var n,o=oV(t);!(n=o()).done;){var i=n.value;if(i.valueXpath&&i.currency&&i.currency.val){var a=i.currency.val,c=o1(i.valueXpath,i.currency.val),u=c.textContent,s=c.priceNumberString;if(s&&u){var l=o2(i.currency.xpath),f=l.currencyCode,p=l.currencyCodeFromeXpath;f&&A(a5.CUSTOM_INFO,{custom_name:"auto_value_currency_currency_code_form_xpath",extJSON:{url:e,currencyCode:f,vcConfig:r}});var h=o3(i.countryCodeXpath),d=h.countryCode,v=h.countryCodeFromXpath;d&&A(a5.CUSTOM_INFO,{custom_name:"auto_value_currency_country_form_xpath",extJSON:{url:e,country:d,vcConfig:r}});var g={value:s,currency:p||a,ori_value:u,rule_key:i.rule_key,country_code:v};return v||(g.country_code=o6(e)),A(a5.CUSTOM_INFO,{custom_name:"auto_value_currency_update_info",extJSON:{url:e,autoProperties:g,vcConfig:r}}),o4(o7,g),g}}}return null}catch(t){return P(a5.CUSTOM_ERROR,t,{custom_name:"updateParameterInferenceData",custom_enum:"updateAutoVCData"}),null}},o4=function(t,e){try{sessionStorage.setItem(t,JSON.stringify(e))}catch(t){}},o8=function(t){try{var e=sessionStorage.getItem(t);return e?JSON.parse(e):null}catch(t){return null}},o9=function(t){try{sessionStorage.removeItem(t)}catch(t){}},o7="value_currency_rule",it="parameter_inference_rule",ie=[cD.CLICK,cD.SCROLL],ir=function(){function t(t){var e=this;this.handlerArray=t,ie.forEach(function(t){window.addEventListener(t.toLowerCase(),tp(function(){e.interactionHandler(t)},2e3,e),{capture:!0,passive:!0})})}var e=t.prototype;return e.iterateHandlerArray=function(t){this.handlerArray.forEach(function(e){return e(t)})},e.interactionHandler=function(t){var e=this;this.timeoutId&&clearTimeout(this.timeoutId),this.iterateHandlerArray(t),this.timeoutId=setTimeout(function(){e.iterateHandlerArray(t)},2e3)},t}(),io=function(){function t(){this.history={}}var e=t.prototype;return e.hasReport=function(t,e,r){var n=this.genHistoryKey(t,e);return this.history[n]&&this.history[n].indexOf(r)>-1},e.addHistory=function(t,e,r){var n=this.genHistoryKey(t,e);this.history[n]||(this.history[n]=[]),this.history[n].push(r)},e.clearHistory=function(){this.history={}},e.genHistoryKey=function(t,e){return t+":"+e},t}(),ii=function(){function t(t,e,r,n){this.context=t,this.reportHistory=new io,this.reporters=e,this.reportService=r,this.ttqOptions=n}var e=t.prototype;return e.report=function(t,e,r){var n=this,o=rl(cE.AUTO_CONFIG),i=this.getReportPixelList(e,r),a=this.assemblyReportData(t,r,i);a&&o&&this.reportService.reportPreTasks.then(function(){n.reportService.report(o,a,cw.defaultReport,cO.P0)})},e.clearHistory=function(){this.reportHistory.clearHistory()},e.getReportPixelList=function(t,e){var r=this,n=JSON.stringify(Object.assign({},e,{page_trigger:void 0}));return this.reporters.filter(function(e){return!!or(e)&&on(e,t)}).filter(function(e){var o=e.getReporterId();return!([cC.AUTO_COLLECTION,cC.AUTO_FORM].indexOf(t)>-1&&r.reportHistory.hasReport(t,o,n))&&(r.reportHistory.addHistory(t,o,n),e)})},e.getCookieBasedSessions=function(t){var e=[],r=e3(document.cookie),n=t.filter(function(t){var e;return!!(null==(e=null==t?void 0:t.reporterInfo)?void 0:e.firstPartyCookieEnabled)});if(0===n.length)return e;var o=this.context.setPageCookieBasedSession(r[""]);return n.forEach(function(t){var n=t.getReporterId(),i=t.setCookieBasedSession(r[n]);e.push(e4(i,o,n))}),e},e.assemblyReportData=function(t,e,r){if(0!==r.length){var n,o,i,a=r.map(function(t){return t.getReporterId()}),c=this.context.getPageSign(),u=(null==(o=null==(n=this.ttqOptions)?void 0:n.cookieBasedSessionConfig)?void 0:o.enable)?this.getCookieBasedSessions(r):[],s=r[0],l=s.assemblyData(s.getReporterId(),"",{},{},cE.AUTO_CONFIG);return delete l.event,l.action=t,l.auto_collected_properties=e,l.context.pixel||(l.context.pixel={}),l.context.pixel.code=a[0],l.context.pixel.codes=a.join("|"),l.context.index=null==(i=c.pageIndex)?void 0:i.index,l.context.session_id=c.sessionId,l.context.pageview_id=W(this.context.getPageViewId(),s.reporterInfo.loadId,"::"),l.context.sessions=u,l.message_id=l.message_id.replace(/-[^-]*$/,""),l}},t}();function ia(){ia=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function d(){}var v={};u(v,i,function(){return this});var g=Object.getPrototypeOf,y=g&&g(g(I([])));y&&y!==e&&r.call(y,i)&&(v=y);var _=d.prototype=p.prototype=Object._ttq_create(v);function m(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function ic(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}function iu(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){ic(i,n,o,a,c,"next",t)}function c(t){ic(i,n,o,a,c,"throw",t)}a(void 0)})}}function is(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function il(t,e){return(il=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var ip=function(t,e){return function(r,n){e(r,n,t)}},ih="AutoConfig",id="tt_auto_config_v2_test",iv=["7039626978839838722"],ig=function(t){function e(e,r,n,o){var i,a,c,u;(i=t.call(this,{name:ih,reporters:r,context:e})||this).autoCollectedMetadata={},i.initializeVersion1=!1,i.initializeVersion2=!1,i.intent_data=[],i.currentPixelCode="",i.autoFormUpdateHandler=tp(function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var e={taskName:window.ttq._pf_tn||"auto_config_form_handler",functionName:window.ttq._pf_tn&&"auto_config_form_handler",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="auto_config_form_handler")}}catch(t){}if(i.autoForm){if(i.autoCollectedFormDetail=i.autoForm.getOverallFormDetail(),i.autoCollectedFormDetail.length>3e4)return void P(a5.CUSTOM_ERROR,{message:""+String(i.autoCollectedFormDetail.length)},{custom_name:n0,custom_enum:cA.OVER_LENGTH});i.actTracker.report(cP.METADATA,cC.AUTO_FORM,{page_trigger:t,form_details:i.autoCollectedFormDetail})}try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e),"auto_config_form_handler"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}},200,is(i)),i.autoCollectionUpdateHandler=tp(function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var e={taskName:window.ttq._pf_tn||"auto_config_metadata_handler",functionName:window.ttq._pf_tn&&"auto_config_metadata_handler",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="auto_config_metadata_handler")}}catch(t){}i.autoCollectedMetadata=function(t){var e={open_graph:"{}",microdata:"[]",json_ld:"[]",meta:"{}"};try{e.microdata=function(){if(!oT.getMetaData)return"[]";for(var t=document.querySelectorAll("[itemscope]"),e=[],r=oR(),n=0;n=0;o--){var i=t[o],a=i.getAttribute("itemtype");if("string"==typeof a&&""!==a){for(var c={},u=i.querySelectorAll("[itemprop]"),s=0;s0)return t.innerText;if(t.textContent&&t.textContent.length>0)return t.textContent}return""}(t)||""}return"string"==typeof e?oS(e):""}(l);if(null!=p){var h=c[f];null!=h&&function(t,e){return null!=[{property:"image",type:"Product"}].filter(function(r){return(t==="https://schema.org/"+r.type||t==="http://schema.org/"+r.type)&&r.property===e})[0]}(a,f)?Array.isArray(h)?c[f].push(p):c[f]=[h,p]:c[f]=p}}}}e.unshift({schema:{dimensions:{h:i.clientHeight,w:i.clientWidth},properties:ox(a)?{}:c,subscopes:[],type:a},scope:i})}}for(var d=[],v=[],g=0;g=0;E--)if(d[E].scope.contains(_)){d[E].schema.subscopes.push(m);break}else d.pop();0===d.length&&v.push(m),d.push({schema:m,scope:_})}var b=JSON.stringify(v);return b.length>3e4&&(b="[]",oT.getMicroData=!1),b}()}catch(t){P(a5.CUSTOM_ERROR,t,{custom_name:"assemble_auto_config_failed",custom_enum:"microdata"})}try{var r=function(){if(!oT.getJSONLD)return{data:"[]",errors:[]};for(var t=[],e=[],r=document.querySelectorAll('script[type="application/ld+json"]'),n=0,o=0;o3e4)return oT.getJSONLD=!1,{data:JSON.stringify([]),errors:[{name:cL.OVER_LENGTH,message:""+String(n)}]};var a=void 0;try{a=JSON.parse(i.replace(/[\n\r\t]+/g," "))}catch(t){e.push({name:cL.ERROR_FORMAT,message:t.message})}try{a=function t(e){if("object"!=typeof e)return e;if(Array.isArray(e))return e.map(function(e){return t(e)});var r=Object.assign({},e),n=r["@type"];for(var o in r)"@type"!==o&&"@context"!==o&&("object"==typeof r[o]?r[o]=t(r[o]):n&&ox(n)&&delete r[o]);return r}(a)}catch(t){return{data:JSON.stringify([]),errors:[{name:cL.FILTER_SENSITIVE_FIELDS,message:t.message}]}}a&&t.push(a)}}return{data:JSON.stringify(t),errors:e}}(),n=r.data,o=r.errors;e.json_ld=n,o&&o.forEach(function(t){var e=t.name,r=t.message;P(a5.CUSTOM_ERROR,{message:r},{custom_name:"parse_json_ld_failed",custom_enum:e})})}catch(t){P(a5.CUSTOM_ERROR,t,{custom_name:"assemble_auto_config_failed",custom_enum:"json_ld"})}try{e.open_graph=function(t){if(!oT.getOpenGraph)return"{}";for(var e=oR(["og","product","music","video","article","book","profile","website","twitter"]),r={},n=document.querySelectorAll("meta[property],meta[name]"),o=0;ot.width?e:t})}(t);r&&(e.image_url=r.src)}if(!e.destination){var n=ow(t);n&&(e.destination=n)}return e}(h));var d=(a={composedPath:s,container:l},c=n2.PRIORITY_CONFIG,u={},Object.entries(c).forEach(function(t){for(var e,r=t[0],n=t[1],o=n9(n);!(e=o()).done;){var i=a[e.value][r];if(i){u[r]=i;break}}}),u),v=d.destination||d.image_url;if(h?d.from=cF.FIND_PRODUCT_CARD:d.from=cF.COMPOSED_PATH,d.inner_text=od(d.inner_text),(null==(e=d.inner_text)?void 0:e.length)>n2.MAX_INNER_TEXT_LENGTH)return null;return v?d:null}catch(t){return P(a5.CUSTOM_ERROR,t,{custom_name:"auto_click",custom_enum:"findRelatedParameter_error"}),null}}(e),!("v1"===r&&!a||"v1"===r&&!ty(a)||"v2"===r&&!o&&!c)){t.next=6;break}return t.abrupt("return");case 6:if(i.queryDeepIntentData(),i.signal_insights_config&&oW(i.context,i.signal_insights_config),!a){t.next=19;break}return u=ob(oE(a)),t.next=12,i.sensitiveRedactor.processAsync(u,"replace",n4);case 12:if((s=t.sent).success){t.next=16;break}return P(a5.CUSTOM_ERROR,s.error,{custom_name:"auto_click",custom_enum:"sensitive_filter_error"}),t.abrupt("return");case 16:l=s.redactedOutput,c&&o?l.filter_version=cM.V1:c&&!o&&(l.filter_version=cM.V2),i.reportButtonClick({triggerElement:l,intent_data:[].concat(i.intent_data,c?[c]:[])});case 19:t.next=24;break;case 21:t.prev=21,t.t0=t.catch(0),P(a5.CUSTOM_ERROR,t.t0,{custom_name:"auto_click",custom_enum:"auto_click_callback_error"});case 24:case"end":return t.stop()}},t,null,[[0,21]])})),i.autoClickCallback=function(t){return u.apply(this,arguments)},i.filter=n.auto_config||{open_graph:[],microdata:[],json_ld:[],meta:[]},i.actTracker=new ii(e,r,o,n);try{((null==(a=null==n?void 0:n.plugins)?void 0:a.AutoClick)===!1||-1!==eW(id).indexOf("1"))&&tS(is(i),"autoClickCallback","instance"),((null==(c=null==n?void 0:n.plugins)?void 0:c.Metadata)===!1||-1!==eW(id).indexOf("2"))&&tS(is(i),"autoCollectionUpdateHandler","instance")}catch(t){}return i}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,il(e,t);var r,n=e.prototype;return n.initBaseFeature=function(){var t=this.getAutoConfigVersion(this.currentPixelCode),e=this.reporters.some(function(t){return or(t)});!this.initializeVersion2&&("v1"===t&&!this.initializeVersion1&&e&&(this.initializeVersion1=!0,this.initAutoCollection(),this.initInteractionListener(),this.initAutoClick(t)),"v2"===t&&e&&(this.initializeVersion1||(this.initAutoCollection(),this.initInteractionListener()),this.initAutoClick(t),this.initializeVersion2=!0))},n.initExtraFeature=function(){!this.autoForm&&(this.initializeVersion2||this.initializeVersion1)&&this.reporters.some(function(t){return on(t,cC.AUTO_FORM)})&&this.initAutoForm(),this.initAutoVC()},n.queryDeepIntentData=function(){try{var t=function(){try{var t=(i=(o=em()).url,a=o.title,c=new URL(i).pathname.toLowerCase().includes(n6),u=a.toLowerCase().includes(n6),{isCheckoutPage:c||u,isUrlMatch:c,isTitleMatch:u}),e=t.isCheckoutPage,r=t.isUrlMatch,n=t.isTitleMatch;if(!e)return null;op||(op=!0,A(a5.CUSTOM_INFO,{custom_name:"auto_click",custom_enum:"checkout_page_identified",extJSON:{message:+!!r+"|"+ +!!n}}));for(var o,i,a,c,u,s,l=new Set([]),f=[],p=[],h=Array.from(document.getElementsByTagName("img")).filter(function(t){for(var e=t.className,r=0,n=Array.from(n2.INVALID_IMG_KEYWORDS);r=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(h);!(s=d()).done;){var v=s.value;if(f.length>n3.MAX_PRODUCTS_COUNT)break;if(!of.has(v)){if(of.add(v),!(v.height=0;n--){var o=t[n],i=ow(o);if(oh(o))e=o,r.inner_text=od(o.innerText),r.destination=i||r.destination;else break}if(!e||!r.inner_text||r.inner_text.length>n3.MAX_COMPRESS_STRING_LENGTH)return{intentData:null,containerNode:null};return{intentData:r,containerNode:e}}catch(t){return P(a5.CUSTOM_ERROR,t,{custom_name:"auto_click",custom_enum:"reverseCheckoutPageInfo_error"}),{intentData:null,containerNode:null}}}(y),I=O.intentData,T=O.containerNode;T&&I&&(p.push(T),I.image_url=g,f.push(I))}}}}}if(function(t,e){if(!(t.length<=n3.MAX_PRODUCTS_COUNT)){for(var r=oa(e[n3.MAX_PRODUCTS_COUNT]),n=n3.MAX_PRODUCTS_COUNT,o=n3.MAX_PRODUCTS_COUNT-1;o>=0;o--)if(oc(r,oa(e[o]))>n3.INVALID_DATA_SIMILARITY_THRESHOLD)n--;else break;t.splice(n),e.splice(n)}}(f,p),0==f.length)return null;return f}catch(t){return P(a5.CUSTOM_ERROR,t,{custom_name:"auto_click",custom_enum:"queryCheckoutPageIntentData_error"}),null}}();t&&(this.intent_data=function(t){for(var e,r=new Set,n=[],o=ov(t);!(e=o()).done;){var i=e.value,a=i.image_url;r.has(a)||(r.add(a),n.push(i))}return n}([].concat(this.intent_data,t)),A(a5.CUSTOM_INFO,{custom_name:"auto_click",custom_enum:"queryCheckoutPageIntentData",extJSON:{message:""+this.intent_data.length}}))}catch(t){P(a5.CUSTOM_ERROR,t,{custom_name:"autoclick",custom_enum:"queryDeepIntentData"})}},n.initInteractionListener=function(){var t=this;this.reporters.some(function(t){var e=t.options;return e&&!1!==e.autoConfigListener})&&new ir([function(e){oe(t.autoCollectionUpdateHandler,t)(e)},function(e){oe(t.autoFormUpdateHandler,t)(e)}])},n.initAutoClick=function(t){var e=this;t1(cl.CLICK,this.autoClickCallback,{throttle:!0,interval:1e3},{observerType:cl.CLICK,pluginName:ih,pluginVersion:t,target:"v2"===t?window:tv,environment:"window",listenEventTypes:[cl.CLICK],mode:"append"});try{if(this.sensitiveRedactor)return;this.sensitiveRedactor=m().getPlugin("SensitiveRedactor"),Object.entries(n8).forEach(function(t){var r=t[0],n=t[1];e.sensitiveRedactor.registerReplaceRedactor({keywords:[],regexArray:n,tag:r})}),Object.entries(rE).forEach(function(t){var r=t[0],n=t[1];e.sensitiveRedactor.registerReplaceRedactor({keywords:n,regexArray:[],tag:r})})}catch(t){P(a5.CUSTOM_ERROR,t,{custom_name:"auto_click",custom_enum:"sensitive_init_error"})}},n.initAutoVC=function(){var t=this;this.reporters.find(function(e){var r=oJ(e);return!!r&&(t.signal_insights_config=r,!0)})},n.initAutoCollection=function(){},n.initAutoForm=function(){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var t={taskName:window.ttq._pf_tn,functionName:"initAutoForm",start:performance.now()}}catch(t){}this.autoForm=new oG(this.reporters),this.autoForm.addFormUpdateHandler(this.autoFormUpdateHandler.bind(this)),this.autoCollectedFormDetail=this.autoForm.getOverallFormDetail();try{window.ttq&&window.ttq._ppf&&(t.end=performance.now(),window.ttq._ppf.push(t))}catch(t){}},n.pixelDidMount=function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var e={taskName:window.ttq._pf_tn,functionName:"auto_config_plugin_pixelDidMount",start:performance.now()}}catch(t){}this.currentPixelCode=t.getReporterId(),this.initBaseFeature(),this.initExtraFeature();try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}},n.patchEnd=function(){this.initBaseFeature(),this.initExtraFeature()},n.pixelSend=function(t,e,r){var n=this.reporters.find(function(e){return e.getReporterId()===t});if(this.currentPixelCode=t,this.signal_insights_config&&oW(this.context,this.signal_insights_config),n&&oJ(n)&&(o8(o7)||o8(it))){(tn(e)||"Pageview"===e||"InitiateCheckout"===e||"PlaceAnOrder"===e)&&(o=o8(o7));var o,i=o8(it);r.auto_collected_properties={vc_properties:Object.assign(Object.assign({},o&&{value:o.value,currency:o.currency,ori_value:o.ori_value,rule_key:o.rule_key}),i&&{parameter_inference:i})}}tn(e)&&setTimeout(function(){o9(o7)},500),"Pageview"===e&&(!n||or(n))&&(oe(this.autoCollectionUpdateHandler,this)(cD.PAGE_VIEW),oe(this.autoFormUpdateHandler,this)(cD.PAGE_VIEW))},n.pageUrlDidChange=function(t,e){null!=e&&""!=e&&(this.autoCollectionUpdateHandler(cD.URL_CHANGE),this.autoFormUpdateHandler(cD.URL_CHANGE))},n.pageWillLeave=function(){this.autoCollectionUpdateHandler(cD.PAGE_LEAVE),this.autoFormUpdateHandler(cD.PAGE_LEAVE)},r=iu(ia().mark(function t(e){var r,n,o,i;return ia().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=o8(o7)||void 0,(n=o8(it)||void 0)&&((r=r||{}).parameter_inference=n),("v1"==(this.initializeVersion2?"v2":"v1")||"1"===eW(id))&&(e.intent_data=e.intent_data.filter(function(t){return t.from===cF.CHECKOUT})),o=void 0,e.intent_data.length){t.next=10;break}o=void 0,t.next=14;break;case 10:return t.next=12,this.sensitiveRedactor.processAsync(e.intent_data,"replace",n5);case 12:(i=t.sent).success&&(o=i.redactedOutput);case 14:this.actTracker.report(cP.CLICK,cC.AUTO_VC,{page_trigger:cD.CLICK,trigger_element:e.triggerElement,vc_properties:r,intent_data:o}),this.actTracker.report(cP.CLICK,cC.AUTO_VC_REVERSE,{page_trigger:cD.CLICK,trigger_element:e.triggerElement,intent_data:o});case 16:case"end":return t.stop()}},t,this)})),n.reportButtonClick=function(t){return r.apply(this,arguments)},n.getAutoConfigVersion=function(t){try{var e=this.reporters.find(function(e){return e.getReporterId()===t});if(!e)return"v1";var r=e.plugins,n=r&&r.AutoConfigV2;if(eW(id)||Object.values(this.reporters).some(function(t){var e;return iv.includes(null==(e=t.reporterInfo)?void 0:e.advertiserID)})&&n)return"v2";return n?"v2":"v1"}catch(t){return P(a5.CUSTOM_ERROR,t,{custom_name:"auto_click",custom_enum:"get_auto_config_version_error"}),"v1"}},e}(nA);ig=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([ep(),ip(0,eh(d.CONTEXT)),ip(1,eh(d.TTQ_REPORTERS)),ip(2,eh(d.TTQ_GLOBAL_OPTIONS)),ip(3,eh(d.REPORT_SERVICE))],ig);var iy=r(278),i_=r.n(iy),im={EMPTY_EVENT_TYPE_NAME:{title:"Missing Event Name",desc:"The event name for one or more of your events is empty. This can affect the accuracy of reporting for your conversions.",suggestion:"Go to your source code and add a name that follows our format requirements and TikTok policies.",link:"https://ads.tiktok.com/marketing_api/docs?rid=5ipocbxyw8v&id=1701890973258754"},INVALID_CONTENT_ID:{title:"Missing value for content ID",desc:"Include a value for your 'content_id' parameter. This is required for Video Shopping Ads (VSA).",suggestion:"If you are or plan to run Video Shopping Ads (VSA), go to your source code and include a value for the 'content_id' parameter.",link:"https://ads.tiktok.com/help/article/standard-events-parameters?redirected=2"},INVALID_CONTENT_TYPE:{title:"Invalid content type",desc:'The content type for one or more of your events is not valid. Content type must be either "product", "product_group", "destination", "hotel", "flight" or "vehicle".',suggestion:"Go to your source code and update the content type.",link:"https://ads.tiktok.com/help/article/standard-events-parameters?redirected=2"},INVALID_CURRENCY_CODE:{title:"Invalid currency code",desc:"The currency code for one or more of your events isn't supported. This can affect the accuracy of reporting for your ROAS.",suggestion:"Go to your source code and update the 'currency' parameters with a supported currency code.",link:"https://ads.tiktok.com/help/article/standard-events-parameters?redirected=2"},INVALID_EMAIL_FORMAT:{title:"Incorrect email format",desc:"The email format for your events does not match the format supported. This can impact Advanced Matching and your ad performance.",suggestion:"Go to your source code and update the format of your shared emails. It should follow 'xxx@xxx.com' format.",link:"https://ads.tiktok.com/marketing_api/docs?id=1739585700402178"},INVALID_EMAIL_INFORMATION:{title:"Invalid email information",desc:"The emails shared with your events were invalid.",suggestion:'Go to your source code to double check shared emails. Leave your string empty when customer information isn\'t available. Avoid spaces, "undefined", or other hardcoded values.',link:"https://ads.tiktok.com/marketing_api/docs?id=1739585700402178"},INVALID_EVENT_PARAMETER_VALUE:{title:"Invalid value parameter",desc:"The 'value' parameter for one or more of your events is invalid. This is used calculate ROAS for people and the bid for your highest value customers. Parameters must be an integer or in the decimal format (e.g. 9.99). Also, they can't contain currency symbols, special characters, letters, or commas.",suggestion:"Go to your source code and update the 'value' parameter. It can only include numbers greater than or equal to zero (e.g. 9.99). Do not include currency symbols, special characters, letters, or commas.",link:"https://ads.tiktok.com/help/article/standard-events-parameters?redirected=2"},INVALID_PHONE_NUMBER_FORMAT:{title:"Incorrect phone number format",desc:"The phone number format for your events doesn't follow the E.164 format. This can affect Advanced Matching and your ad performance.",suggestion:"Go to your source code and update your shared phone numbers. It should follow the E.164 format.",link:"https://ads.tiktok.com/marketing_api/docs?id=1739585700402178"},INVALID_PHONE_NUMBER_INFORMATION:{title:"Invalid phone number information",desc:"The phone numbers shared with your events were invalid.",suggestion:'Go to your source code to double check shared phone numbers. Leave your string empty when customer information isn\'t available. Avoid spaces, "undefined", or other hardcoded values.',link:"https://ads.tiktok.com/marketing_api/docs?id=1739585700402178"},LONG_EVENT_TYPE_NAME:{title:"Event Name Too Long",desc:"1 event type exceeds the 50 character limit.",suggestion:"Go to your source code and make these event names 50 characters or less.",link:"https://ads.tiktok.com/help/article/custom-events?lang=en"},MISMATCHED_EVENT_TYPE_NAME_FOR_CUSTOM_EVENT:{title:"Invalid Event Name Format",desc:"1 event name was rejected for not following TikTok format requirements.",suggestion:"Go to your source code and update these event types according to TikTok format requirements.",link:"https://ads.tiktok.com/help/article/custom-events?lang=en"},MISSING_CONTENT_ID:{title:"Missing 'content_id' paramter",desc:"The 'content_id' parameter isn't being received. This is required for Video Shopping Ads (VSA).",suggestion:"Include the 'content_id' parameter in your source code. This is required for Video Shopping Ads (VSA).",link:"https://ads.tiktok.com/help/article/standard-events-parameters?redirected=2"},MISSING_CURRENCY_PARAMETER:{title:'Missing "currency" parameter',desc:"Events shared are missing a 'currency' parameter. This impacts our ability to receive the value amount correctly, which can affect the accuracy of reporting for your return on ad spend.",suggestion:'Go to your source code and include the "currency" parameter. You can check supported currency codes. {{learn_more}}',link:"https://ads.tiktok.com/help/article/standard-events-parameters?redirected=2"},MISSING_EMAIL_AND_PHONE:{title:"Missing email and phone number",desc:"Email and phone number info isn't being received. This information is required for Complete Payment events.",suggestion:"Improve your email and phone coverage. This allows you to attribute more conversions and reach more people with your ads.",link:"https://ads.tiktok.com/marketing_api/docs?rid=5ipocbxyw8v&id=1701890972946433"},MISSING_VALUE_PARAMETER:{title:'Missing "value" parameter',desc:"Events shared are missing a 'value' parameter'. This is used calculate ROAS for people and the bid for your highest value customers. ",suggestion:'Go to your source code and include the "value" parameter.',link:"https://ads.tiktok.com/help/article/standard-events-parameters?redirected=2"},DUPLICATE_PIXEL_CODE:{title:"Duplicate Pixel ID",desc:"The pixel ID is duplicate. This could impact the pixel data accuracy.",suggestion:"Please double check and delete any unnecessary pixel code.",link:""},MISSING_PIXEL_CODE:{title:"Missing pixel ID",desc:"Some of the events sent to your TikTok account are missing a pixel ID.",suggestion:"Go to your source code and double check that the 20-character pixel ID has been added to the ttq.load() function. Don't send null values or spaces. If you edited the base code, ensure the event.js has the 'sdkid' in the Chrome network panel.",link:""},INVALID_PIXEL_CODE:{title:"Invalid pixel ID",desc:"The pixel ID is invalid. This could prevent your pixel from receiving data.",suggestion:"Please go to Events Manager and find the correct pixel ID.",link:""}},iE=/^[a-zA-Z\d]([a-zA-Z_\-\d ]{0,}[a-zA-Z_\-\d])?$/,ib=["product","product_group","destination","hotel","flight","vehicle"],iw=["email_is_hashed","phone_is_hashed","sha256_email","sha256_phone"],iO=["Purchase","CompletePayment","InitiateCheckout","AddToCart","PlaceAnOrder","ViewContent","AddToWishlist"],iI=function(t){return void 0===t},iT=function(t,e){if(cy[t]){var r=y(),n=im[t],o="[TikTok Pixel] - "+n.title;n.desc&&(o+="\nIssue: "+n.desc),n.suggestion&&(o+="\nSuggestion: "+n.suggestion),e&&Object.keys(e).forEach(function(t){o=o.split("{{"+t+"}}").join(e[t])}),o=o.trim(),n.link&&(o+=" See "+n.link+" for more information."),r&&r.console&&r.console.warn&&r.console.warn(o)}};(az=cG||(cG={}))[az.Live=0]="Live",az[az.NoRecord=1]="NoRecord";var iS=function(t){var e=t.event,r=void 0===e?"":e;return!!(["null","undefined"].includes(r)||/^\s*$/.test(r))||!r},iR=function(t){var e=t.event;return!!iS(t)||iE.test(void 0===e?"":e)},iN=function(t){var e=t.event;return(void 0===e?"":e).length<=50},ix=function(t){var e=t.event,r=t._inspection;if(tn(e)){var n=(void 0===r?{}:r).identity_params,o=void 0===n?{}:n;return 0===Object.keys(o).length||iw.every(function(t){return(o[t]||[]).includes(a7.EMPTY_VALUE)})}return!1},iL=function(t){var e=t._inspection,r=void 0===e?{}:e;return!!r&&!!r.identity_params&&((r.identity_params.email_is_hashed||[]).includes(a7.FILTER_EVENTS)||(r.identity_params.sha256_email||[]).includes(a7.FILTER_EVENTS))},iA=function(t){var e=t._inspection,r=void 0===e?{}:e;return!!r&&!!r.identity_params&&((r.identity_params.email_is_hashed||[]).includes(a7.UNKNOWN_INVALID)||(r.identity_params.sha256_email||[]).includes(a7.UNKNOWN_INVALID))},iP=function(t){var e=t._inspection,r=void 0===e?{}:e;return!!r&&!!r.identity_params&&((r.identity_params.phone_is_hashed||[]).includes(a7.FILTER_EVENTS)||(r.identity_params.sha256_phone||[]).includes(a7.FILTER_EVENTS))},iC=function(t){var e=t._inspection,r=void 0===e?{}:e;return!!r&&!!r.identity_params&&((r.identity_params.phone_is_hashed||[]).includes(a7.UNKNOWN_INVALID)||(r.identity_params.sha256_phone||[]).includes(a7.UNKNOWN_INVALID))},ik=function(t){var e=t.event,r=t.properties,n=void 0===r?{}:r;if(iO.includes(void 0===e?"":e)){if(iI(n.contents)&&iI(n.content_id))return!0;if(!iI(n.contents))return!Array.isArray(n.contents)||n.contents.length<1||!n.contents.every(function(t){return t&&!iI(t.content_id)})}return!1},iD=function(t){var e=t.properties,r=void 0===e?{}:e,n=r.content_id,o=r.contents;return!(!iI(n)&&/^\s*$/.test(n))&&(!(!iI(o)&&Array.isArray(o))||o.every(function(t){return t&&!iI(t.content_id)&&!/^\s*$/.test(t.content_id)}))},ij=function(t){var e=t.properties.content_type;return!e||ib.includes(e)},iM=function(t){var e=t.properties.value;return!e||!!("number"==typeof e||"string"==typeof e&&(/^\d+(\.\d+)?$/.test(e)||/^\d+$/.test(e)))},iF=function(t){var e=t.event,r=t.properties,n=void 0===r?{}:r;return!!(tn(void 0===e?"":e)&&iI(n.value)||!iI(n.currency)&&iI(n.value))},iU=function(t){var e=t.properties.currency;return!e||ru.includes(e)},iG=function(t){var e=t.event,r=t.properties,n=void 0===r?{}:r;return!!(tn(void 0===e?"":e)&&iI(n.currency)||!iI(n.value)&&iI(n.currency))};function iq(t,e){return(iq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var iH=function(t,e){return function(r,n){e(r,n,t)}},iV=function(t){function e(e,r,n){var o,i;return(o=t.call(this,{name:"DiagnosticsConsole",reporters:r,context:e})||this).isEnableDiagnosticsConsole=!1,o.isEnableDiagnosticsConsole=!!(null==(i=null==n?void 0:n.plugins)?void 0:i.DiagnosticsConsole),o}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,iq(e,t);var r=e.prototype;return r.isDisableDiagnosticsConsole=function(){try{if(this.isEnableDiagnosticsConsole)return!!Object.values(this.reporters).some(function(t){var e,r;return void 0!==(null==(e=null==t?void 0:t.options)?void 0:e.diagnostics)&&!(null==(r=null==t?void 0:t.options)?void 0:r.diagnostics)});return!0}catch(t){return!1}},r.warn=function(t,e){try{if(this.isDisableDiagnosticsConsole())return;iT(t,e)}catch(e){P(a5.CUSTOM_ERROR,e,{custom_name:"diagnostics_console",custom_enum:t})}},r.pixelDidMount=function(t){var e=this;try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var r={taskName:window.ttq._pf_tn,functionName:"console_plugin_pixelDidMount",start:performance.now()}}catch(t){}t.getParameterInfo().then(function(t){e.handlePixelInfoValidate(t)}).catch(function(t){P(a5.CUSTOM_ERROR,t,{custom_name:"diagnostics_console",custom_enum:"pixel"})});try{window.ttq&&window.ttq._ppf&&(r.end=performance.now(),window.ttq._ppf.push(r))}catch(t){}},r.pixelSend=function(t,e,r,n,o){void 0===n&&(n={});try{n&&n._i||o!==cE.TRACK||e===ri||this.handleEventPayloadValidate(i_()(r||{}))}catch(t){P(a5.CUSTOM_ERROR,t,{custom_name:"diagnostics_console",custom_enum:"track"})}},r.handlePixelInfoValidate=function(t){if(t.status!==cG.Live)return void this.warn(cy.INVALID_PIXEL_CODE)},r.handleEventPayloadValidate=function(t){t.properties||(t.properties={}),iS(t)&&this.warn(cy.EMPTY_EVENT_TYPE_NAME),iR(t)||this.warn(cy.MISMATCHED_EVENT_TYPE_NAME_FOR_CUSTOM_EVENT),iN(t)||this.warn(cy.LONG_EVENT_TYPE_NAME),ix(t)&&this.warn(cy.MISSING_EMAIL_AND_PHONE),iL(t)&&this.warn(cy.INVALID_EMAIL_INFORMATION),iA(t)&&this.warn(cy.INVALID_EMAIL_FORMAT),iP(t)&&this.warn(cy.INVALID_PHONE_NUMBER_INFORMATION),iC(t)&&this.warn(cy.INVALID_PHONE_NUMBER_FORMAT),ik(t)&&this.warn(cy.MISSING_CONTENT_ID),iD(t)||this.warn(cy.INVALID_CONTENT_ID),ij(t)||this.warn(cy.INVALID_CONTENT_TYPE),iM(t)||this.warn(cy.INVALID_EVENT_PARAMETER_VALUE),iF(t)&&this.warn(cy.MISSING_VALUE_PARAMETER),iU(t)||this.warn(cy.INVALID_CURRENCY_CODE),iG(t)&&this.warn(cy.MISSING_CURRENCY_PARAMETER,{learn_more:""})},e}(nA);iV=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([ep(),iH(0,eh(d.CONTEXT)),iH(1,eh(d.TTQ_REPORTERS)),iH(2,eh(d.TTQ_GLOBAL_OPTIONS))],iV);var iB="https://analytics.tiktok.com/i18n/pixel/eb.js",iK="_tt_event_builder";function iY(t,e){return(iY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}(aQ=cq||(cq={})).EVENT_BUILD_BOOTSTRAP_ACK="event_builder_bootstrap_ack",aQ.EVENT_BUILD_WRONG_CODE="event_builder_wrong_code",aQ.EVENT_BUILD_BOOTSTRAP="event_builder_bootstrap";var iW=function(t,e){return function(r,n){e(r,n,t)}},iJ=function(t){function e(e,r){var n;return(n=t.call(this,{name:"EventBuilder",reporters:r,context:e})||this).pluginMounted=!1,n}return e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,iY(e,t),e.prototype.pixelDidMount=function(t){var e=this;try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var r={taskName:window.ttq._pf_tn,functionName:"event_builder_plugin_pixelDidMount",start:performance.now()}}catch(t){}if(!this.pluginMounted){this.pluginMounted=!0;var n=m(),o=function(t){t.data.type===cq.EVENT_BUILD_BOOTSTRAP&&!n._event_builder_pickup_sdk_loaded&&(e.reporters.find(function(e){return e.getReporterId()===t.data.pixelCode})?(n._event_builder_pickup_sdk_loaded=!0,eI(iK,t.data),re(iB).then(function(){window.opener.window.postMessage({type:cq.EVENT_BUILD_BOOTSTRAP_ACK},"*")}).catch(function(t){P(a5.CUSTOM_ERROR,t,{custom_name:"event_builder_load_error",custom_enum:"load_ebjs"})})):n._event_builder_pickup_sdk_verify_flag||(setTimeout(function(){e.reporters.find(function(e){return e.getReporterId()===t.data.pixelCode})||window.opener.window.postMessage({type:cq.EVENT_BUILD_WRONG_CODE},"*")},5e3),n._event_builder_pickup_sdk_verify_flag=!0))};!n._event_builder_pickup_sdk_loaded&&(ew(iK)?re(iB).then(function(){n._event_builder_pickup_sdk_loaded=!0}):window.opener&&(window.addEventListener("message",o),setTimeout(function(){window.removeEventListener("message",o)},8e3)));try{window.ttq&&window.ttq._ppf&&(r.end=performance.now(),window.ttq._ppf.push(r))}catch(t){}}},e}(nA);function iX(t,e){return(iX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}iJ=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([ep(),iW(0,eh(d.CONTEXT)),iW(1,eh(d.TTQ_REPORTERS))],iJ);var iz=function(t,e){return function(r,n){e(r,n,t)}},iQ="tt_pixel_is_enrich_ipv6_triggered_by_enrich_am",iZ=function(t){function e(e,r,n,o){var i;return(i=t.call(this,{name:"EnrichIpv6",reporters:r,context:e})||this).hasReported=!1,i.shouldReportAfterEnrichAM=!1,i.reportService=n,i.env=o,i}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,iX(e,t);var r=e.prototype;return r.isPixelEnrichIpv6=function(){var t=this.reporters;return!!t&&0!==t.length&&t.every(function(t){return t&&t.plugins&&!0===t.plugins.EnrichIpv6})},r.isEnrichIpv6V2SwitchOn=function(){var t="EnrichIpv6V2";try{var e=m()._plugins||{};if(null!=e[t])return!!e[t];return!1}catch(t){return!1}},r.buildEnrichIpv6Data=function(t){var e=this.isEnrichIpv6V2SwitchOn()?"#source=2":"#source=1";return Object.assign(Object.assign({},t),{event:"EnrichIpv6",trigger_event:t.event,message_id:t.message_id+e})},r.pixelSend=function(t,e,r,n,o){void 0===n&&(n={});try{var i;if(o!==cE.TRACK||!("Shopify"===T(t)||this.isEnrichIpv6V2SwitchOn())||tL(this.env)||!(r&&r.message_id)||((null==(i=this.context.getPageSign().pageIndex)?void 0:i.index)===0&&!this.hasReported&&this.isPixelEnrichIpv6()&&(this.hasReported=!0,this.reportService.report(ek,this.buildEnrichIpv6Data(r),cw.htmlHttpReport)),"true"===sessionStorage.getItem(iQ)))return;"EnrichAM"===e&&(this.shouldReportAfterEnrichAM=!0),this.shouldReportAfterEnrichAM&&this.isPixelEnrichIpv6()&&(this.shouldReportAfterEnrichAM=!1,sessionStorage.setItem(iQ,"true"),this.reportService.report(ek,this.buildEnrichIpv6Data(r),cw.htmlHttpReport))}catch(t){P(a5.CUSTOM_ERROR,t,{custom_name:"enrich_ipv6_report"})}},e}(nA);function i$(t){return performance&&performance.timing?t?B()-t:B()-performance.timing.navigationStart:-1}function i0(t,e){return function(){for(var r=arguments.length,n=Array(r),o=0;o=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([ep(),iz(0,eh(d.CONTEXT)),iz(1,eh(d.TTQ_REPORTERS)),iz(2,eh(d.REPORT_SERVICE)),iz(3,eh(d.ENV))],iZ),(aZ=cH||(cH={})).FIRST_CONTENTFUL_PAINT="fcp",aZ.LARGEST_CONTENTFUL_PAINT="lcp",aZ.FIRST_INPUT_DELAY="fid",aZ.TIME_TO_FIRST_BYTE="ttfb",aZ.PAGE_LEAVE="pl",aZ.LOAD_FINISH="lf",aZ.TIME_WINDOW_TRACKER="twt",aZ.TIME_TO_INTERACTIVE="tti",(a$=cV||(cV={})).performance="performance",a$.interaction="interaction";var i3=function(){function t(t,e,r,n){n?(this.reportService=r,this.context=t,this.reporters=e,this.reportUrl=n):P(a5.CUSTOM_ERROR,Error("empty reportUrl"),{custom_name:"empty_reportUrl",custom_enum:"page_perf_monitor"})}var e=t.prototype;return e.getResult=function(t){return{action_event:t}},e.report=function(t){var e=this;if(void 0!==t){var r=this.getReportPixelList(),n=this.assemblyReportData(cE.PAGE,t,r);n&&this.reportService.reportPreTasks.then(function(){e.reportService.report(e.reportUrl,n,cw.defaultReport,cO.P0)}),this.resetAfterReport()}},e.getReportPixelList=function(){return this.reporters},e.assemblyReportData=function(t,e,r){if(0!==r.length){var n,o=r.map(function(t){return t.getReporterId()}),i=this.context.getPageSign(),a=r[0],c=a.assemblyData(a.getReporterId(),"",{},{},cE.PAGE);return delete c.event,c.action=t,c.auto_collected_properties=e,c.context.pixel||(c.context.pixel={}),c.context.pixel.code=o[0],c.context.pixel.codes=o.join("|"),c.context.index=null==(n=i.pageIndex)?void 0:n.index,c.context.session_id=i.sessionId,c.context.pageview_id=W(this.context.getPageViewId(),a.reporterInfo.loadId,"::"),c.message_id=c.message_id.replace(/-[^-]*$/,""),c}},t}();function i6(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(this.rules);!(t=e()).done;){var r=t.value;try{if(!r({clickTimes:this.clickTimesTotal,scrollTimes:this.scrollTimesTotal,stayTime:this.stayTime}))return!1}catch(t){return!1}}return!0},r.isUpdated=function(){return 0!=this.clickTimes||0!=this.scrollTimes},r.resetAfterReport=function(){this.clickTimes=0,this.scrollTimes=0},e}(i3),cX=function(t){setTimeout(function(){t(cH.TIME_TO_INTERACTIVE,-1)},0)},cz=function(t){var e=function(){new Promise(function(t,e){setTimeout(function(){if(function(){try{return!!(performance&&performance.getEntriesByType)}catch(t){return!1}}()){var r=performance.getEntriesByType("navigation");if(r.length>0){var n=r[0];t(n.loadEventEnd-n.startTime)}else window.performance.timing?t(window.performance.timing.loadEventEnd-window.performance.timing.navigationStart||-1):e("Performance timing not supported")}},0)}).then(function(e){t(cH.LOAD_FINISH,e)}).catch(function(e){t(cH.LOAD_FINISH,-1)})};"complete"===window.document.readyState?e():window.addEventListener("load",e)},cQ=-1,cZ=function(t){addEventListener("pageshow",function(e){e.persisted&&(cQ=e.timeStamp,t(e))},!0)},c$=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},c0=function(){var t=c$();return t&&t.activationStart||0},c1=function(t,e){var r=c$(),n="navigate";return cQ>=0?n="back-forward-cache":r&&(document.prerendering||c0()>0?n="prerender":document.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(0x82f79cd8fff*Math.random())+1e12),navigationType:n}},c2=function(t,e,r){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var n=new PerformanceObserver(function(t){Promise.resolve().then(function(){e(t.getEntries())})});return n.observe(Object.assign({type:t,buffered:!0},r||{})),n}}catch(t){}},c3=function(t,e,r,n){var o,i;return function(a){var c;e.value>=0&&(a||n)&&((i=e.value-(o||0))||void 0===o)&&(o=e.value,e.delta=i,c=e.value,e.rating=c>r[1]?"poor":c>r[0]?"needs-improvement":"good",t(e))}},c6=function(t){requestAnimationFrame(function(){return requestAnimationFrame(function(){return t()})})},c5=function(t){var e=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||t(e)};addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0)},c4=function(t){var e=!1;return function(r){e||(t(r),e=!0)}},c8=-1,c9=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},c7=function(t){"hidden"===document.visibilityState&&c8>-1&&(c8="visibilitychange"===t.type?t.timeStamp:0,ue())},ut=function(){addEventListener("visibilitychange",c7,!0),addEventListener("prerenderingchange",c7,!0)},ue=function(){removeEventListener("visibilitychange",c7,!0),removeEventListener("prerenderingchange",c7,!0)},ur=function(){return c8<0&&(c8=c9(),ut(),cZ(function(){setTimeout(function(){c8=c9(),ut()},0)})),{get firstHiddenTime(){return c8}}},un=function(t){document.prerendering?addEventListener("prerenderingchange",function(){return t()},!0):t()},uo=[1800,3e3],ui=function(t,e){e=e||{},un(function(){var r,n=ur(),o=c1("FCP"),i=c2("paint",function(t){t.forEach(function(t){"first-contentful-paint"===t.name&&(i.disconnect(),t.startTimen.value&&(n.value=o,n.entries=i,r())},c=c2("layout-shift",a);c&&(r=c3(t,n,ua,e.reportAllChanges),c5(function(){a(c.takeRecords()),r(!0)}),cZ(function(){o=0,r=c3(t,n=c1("CLS",0),ua,e.reportAllChanges),c6(function(){return r()})}),setTimeout(r,0))}))},uu={passive:!0,capture:!0},us=new Date,ul=function(t,e){cB||(cB=e,cK=t,cY=new Date,uh(removeEventListener),uf())},uf=function(){if(cK>=0&&cK1e12?new Date:performance.now())-t.timeStamp;"pointerdown"==t.type?(e=function(){ul(o,t),n()},r=function(){n()},n=function(){removeEventListener("pointerup",e,uu),removeEventListener("pointercancel",r,uu)},addEventListener("pointerup",e,uu),addEventListener("pointercancel",r,uu)):ul(o,t)}},uh=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach(function(e){return t(e,up,uu)})},ud=[100,300],uv=function(t,e){e=e||{},un(function(){var r,n=ur(),o=c1("FID"),i=function(t){t.startTimeperformance.now())return;r.value=Math.max(i-c0(),0),r.entries=[o],n(!0),cZ(function(){(n=c3(t,r=c1("TTFB",0),um,e.reportAllChanges))(!0)})}})};function uw(t,e){return(uw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var uO=function(t,e){return function(r,n){e(r,n,t)}},uI=function(t){function e(e,r,n,o){var i;return(i=t.call(this,e,r,n,o)||this).cls=-1,i.init(),i}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,uw(e,t);var r=e.prototype;return r.init=function(){uc(this.clsHandler.bind(this),{reportAllChanges:!0}),ub(this.webVitalHandler.bind(this)),ui(this.webVitalHandler.bind(this)),u_(this.webVitalHandler.bind(this),{reportAllChanges:!0}),uv(this.webVitalHandler.bind(this)),cX(this.baseHandler.bind(this)),cz(this.baseHandler.bind(this))},r.getResult=function(t){var e=Math.floor(i$()),r={ttns:e,cls:i1(this.cls),idx:this.getSessionIndex(),pep:i1(this.getPep())},n=["cls","idx","pep"];n.unshift(t);var o={metrics_type:n.join("|"),cls:r.cls,idx:r.idx,pep:r.pep};return o[t]=e,{action_event:t,perf:r,page_perf:o}},r.resetAfterReport=function(){},r.clsHandler=function(t){this.cls=t.value||-1},r.webVitalHandler=function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var e,r={taskName:window.ttq._pf_tn||"page_data_web_vital_handler",functionName:window.ttq._pf_tn&&"page_data_web_vital_handler",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="page_data_web_vital_handler")}}catch(t){}var n=this.getResult(t.name.toLocaleLowerCase());n.perf&&(n.perf.ttns=(null==t?void 0:t.value)?Math.floor(t.value):-1),n.page_perf&&(n.page_perf[t.name.toLocaleLowerCase()]=null==(e=null==n?void 0:n.perf)?void 0:e.ttns),this.report(n),this.resetAfterReport();try{window.ttq&&window.ttq._ppf&&(r.end=performance.now(),window.ttq._ppf.push(r),"page_data_web_vital_handler"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}},r.baseHandler=function(t,e){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var r,n={taskName:window.ttq._pf_tn||"page_data_base_handler",functionName:window.ttq._pf_tn&&"page_data_base_handler",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="page_data_base_handler")}}catch(t){}var o=this.getResult(t);o.perf&&(o.perf.ttns=e?Math.floor(e):-1),o.page_perf&&(o.page_perf[t]=null==(r=o.perf)?void 0:r.ttns),this.report(o),this.resetAfterReport();try{window.ttq&&window.ttq._ppf&&(n.end=performance.now(),window.ttq._ppf.push(n),"page_data_base_handler"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}},r.getSessionIndex=function(){var t,e=null==(t=this.context.getPageSign().pageIndex)?void 0:t.main;return null==e?-1:e},r.getCurrScrollPosition=function(){return document.documentElement.scrollTop||document.body.scrollTop},r.getViewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},r.getMaxHeight=function(){var t=document.body,e=document.documentElement;return Math.max(t.scrollHeight,t.offsetHeight,e.clientHeight,e.scrollHeight,e.offsetHeight)},r.getPep=function(){return(this.getCurrScrollPosition()+this.getViewportHeight())/this.getMaxHeight()},e}(i3);uI=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([uO(0,eh(d.CONTEXT)),uO(1,eh(d.TTQ_REPORTERS)),uO(2,eh(d.REPORT_SERVICE))],uI);var uT=[function(t){var e=t.clickTimes,r=t.scrollTimes;return e>=1||r>=1}];function uS(t,e){return(uS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var uR=function(t,e){return function(r,n){e(r,n,t)}},uN="PageData",ux=function(t){function e(e,r,n,o){var i;return(i=t.call(this,{name:uN,reporters:r,context:e})||this).monitors=[],i.isPagePerfInit=!1,i.isPageInterInit=!1,i.reportService=n,i.context=e,i.reporters=r,i.env=o,i}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,uS(e,t);var r=e.prototype;return r.init=function(t){this.isPageInterEnabled(t)&&this.initInteraction(),this.isPagePerfEnabled(t)&&this.initPerformance()},r.initInteraction=function(){this.isPageInterInit||(this.interactionMonitor=new cJ(this.context,this.reporters,this.reportService,rl(cE.PAGE_INTERACTION),uT),this.monitors.push(this.interactionMonitor),this.isPageInterInit=!0)},r.initPerformance=function(){this.isPagePerfInit||(this.performanceMonitor=new uI(this.context,this.reporters,this.reportService,rl(cE.PAGE_PERFORMANCE)),this.monitors.push(this.performanceMonitor),this.isPagePerfInit=!0)},r.isPagePerfEnabled=function(t){return tL(this.env)||i2(t,cV.performance)},r.isPageInterEnabled=function(t){return tL(this.env)||i2(t,cV.interaction)},r.report=function(t){if(this.isPageInterInit){var e=this.interactionMonitor.getResultOnPageLeave(t);void 0!==e&&(this.interactionMonitor.report(e),this.interactionMonitor.resetAfterReport())}},r.pageWillLeave=function(t){this.report(cH.PAGE_LEAVE)},r.pixelDidMount=function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var e={taskName:window.ttq._pf_tn,functionName:"page_plugin_pixelDidMount",start:performance.now()}}catch(t){}this.init(t);try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}},e}(nA);ux=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([ep(),uR(0,eh(d.CONTEXT)),uR(1,eh(d.TTQ_REPORTERS)),uR(2,eh(d.REPORT_SERVICE)),uR(3,eh(d.ENV))],ux);var uL={initAllModule:1,webTtqFactory:2,handleCache:3,webReporterFactory:4,initAutoForm:5,auto_config_plugin_pixelDidMount:6,callback_plugin_pixelDidMount:7,console_plugin_pixelDidMount:8,event_builder_plugin_pixelDidMount:9,shopify_plugin_pixelDidMount:10,page_plugin_pixelDidMount:11,competitor_insight_plugin_init:12,getPixelInstalledPosition:13,getPixelScriptByPixelCode:14,resetExpires:15,freezeAPI:16,handlePixelRules:17,mergeWebGlobalTtq:18,handleGlobalCache:22,getPixelDetail:19,basettq_init_context_info:20,initAutoForm_getOverallFormDetail:21,web_track_handler:23,identify_api_handler:24,updateParameterInferenceData:25},uA={identify_api_handler:{id:1,fn:[]},identify_encryption:{id:2,fn:[]},identify_after_encryption:{id:3,fn:[]},track_api_handler:{id:4,fn:[]},track_after_reporter_init:{id:5,fn:[]},track_after_report_preposition:{id:6,fn:[]},init:{id:7,fn:[uL.initAllModule,uL.webTtqFactory,uL.handleCache,uL.webReporterFactory,uL.initAutoForm,uL.freezeAPI,uL.handlePixelRules,uL.resetExpires,uL.mergeWebGlobalTtq,uL.auto_config_plugin_pixelDidMount,uL.callback_plugin_pixelDidMount,uL.console_plugin_pixelDidMount,uL.event_builder_plugin_pixelDidMount,uL.shopify_plugin_pixelDidMount,uL.page_plugin_pixelDidMount,uL.competitor_insight_plugin_init,uL.getPixelInstalledPosition,uL.getPixelScriptByPixelCode,uL.handleGlobalCache,uL.basettq_init_context_info,uL.initAutoForm_getOverallFormDetail,uL.web_track_handler,uL.identify_api_handler,uL.updateParameterInferenceData]},page_api_handler:{id:8,fn:[]},auto_advanced_matching_handler:{id:9,fn:[]},auto_config_metadata_handler:{id:10,fn:[]},auto_config_click_handler:{id:11,fn:[]},auto_config_form_handler:{id:12,fn:[]},event_builder_dispatcher:{id:13,fn:[]},page_data_web_vital_handler:{id:14,fn:[]},page_data_base_handler:{id:15,fn:[]}},uP=function(){function t(){this.queue=[],this.currentTaskMap={}}var e=t.prototype;return e.handleCache=function(t){var e=this;t.forEach(function(t){e.push(t)})},e.push=function(t){var e=t.taskName,r=t.functionName,n=t.start,o=Math.round((t.end-n)*1e3),i=e&&this.getTaskIdFromName(e);if(i){var a=this.currentTaskMap[i];if(a||(this.currentTaskMap[i]=a={id:i,d:-1}),r){var c=this.getFunctionIdFromName(r);c&&(a.f=[].concat(a.f||[],[{id:c,d:o}]))}else a.d=o,this.queue.push(a),delete this.currentTaskMap[i]}},e.print=function(){return this.queue},e.printAndClear=function(){var t=this.print();return this.clear(),t},e.clear=function(){this.queue=[]},e.getTaskIdFromName=function(t){var e;return null==(e=uA[t])?void 0:e.id},e.getFunctionIdFromName=function(t){return uL[t]},t}();function uC(t,e){return(uC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var uk=function(t,e){return function(r,n){e(r,n,t)}},uD=function(t){function e(e,r){var n;return(n=t.call(this,{name:"RuntimeMeasurement",reporters:r,context:e})||this).initialize=!1,n.init(),n}return e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,uC(e,t),e.prototype.init=function(){if(!this.initialize){this.performanceDataQueue=new uP;var t=m();t&&t._ppf&&(this.performanceDataQueue.handleCache(t._ppf),t._ppf=this.performanceDataQueue),this.initialize=!0}},e}(nA);uD=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([ep(),uk(0,eh(d.CONTEXT)),uk(1,eh(d.TTQ_REPORTERS))],uD),(t=i4||(i4={}))[t.OTHER=0]="OTHER",t[t.ANDROID=1]="ANDROID",t[t.IOS=2]="IOS";var uj=[a5.LOAD_START,a5.LOAD_END,a5.INIT_START,a5.INIT_END,a5.JSB_INIT_START,a5.JSB_INIT_END,a5.AD_INFO_INIT_START,a5.AD_INFO_INIT_END,a5.IDENTIFY_INIT_START,a5.IDENTIFY_INIT_END,a5.PLUGIN_INIT_START,a5.PLUGIN_INIT_END],uM=[a5.BEFORE_INIT,a5.INIT_START,a5.INIT_END,a5.HTTP_SEND,a5.AD_INFO_INIT_END];function uF(t){try{if(!performance||!performance.timing)return -1;if(t)return B()-t;return B()-performance.timing.navigationStart}catch(t){}return -1}var uU=function(t,e){void 0===e&&(e="");try{var r=[],n=performance.getEntriesByType("resource");if(n&&Array.isArray(n)){var o=[RegExp("/i18n/pixel/events\\.js\\?sdkid="+t),RegExp("/i18n/pixel/sdk\\.js\\?sdkid="+t)];n.forEach(function(t){var e=t.name,n=t.duration;o.some(function(t){return t.test(e)})&&r.push({name:e,duration:n})});var i=document&&document.currentScript,a=i&&i.src;if(a||!a&&e){var c=n.find(function(t){return t.name.indexOf(a||e)>-1});c&&r.push({name:c.name,duration:c.duration})}}return r}catch(t){return[]}};function uG(){uG=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function d(){}var v={};u(v,i,function(){return this});var g=Object.getPrototypeOf,y=g&&g(g(I([])));y&&y!==e&&r.call(y,i)&&(v=y);var _=d.prototype=p.prototype=Object._ttq_create(v);function m(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function uq(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}function uH(t,e){return(uH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}(e=i8||(i8={}))[e.NOT_DETERMINED=0]="NOT_DETERMINED",e[e.RESTRICTED=1]="RESTRICTED",e[e.DENIED=2]="DENIED",e[e.AUTHORIZED=3]="AUTHORIZED";var uV=function(t){function e(e){var r,n=e.pixelDetails,o=e.context,i=e.reporters,a=e.reportService,c=e.httpService,u=e.env,s=e.ttqOptions;return(r=t.call(this,{name:"Monitor",reporters:i,context:o})||this).hasReportMap={},r.cachedData=[],r.contextInitEndStatus=!1,r.legacy=[],r.env=u,r.lib=n.lib,r.pixelCode=n.pixelCode,r.reportService=a,r.httpService=c,r.contextInitEndStatus=!1,r.platform=tk()?i4.ANDROID:tD()?i4.IOS:i4.OTHER,r.partner=s.partner||"",s.legacy&&(r.legacy=s.legacy),r.ttqOptions=s,r}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,uH(e,t);var r,n,o=e.prototype;return o.reportSwitch=function(){return!this.reporters.some(function(t){var e;return(null==(e=t.options)?void 0:e.monitor)===!1})},o.recordReportLog=function(t){var e=t.pixel_code;this.hasReportMap[e]||(this.hasReportMap[e]=[]),this.hasReportMap[e].push(t)},r=uG().mark(function t(e,r){return uG().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.httpService.send(e,r);case 2:!t.sent&&this.httpService.sendByImage&&this.httpService.sendByImage(e,{log_message:r1(r)});case 4:case"end":return t.stop()}},t,this)}),n=function(){var t=this,e=arguments;return new Promise(function(n,o){var i=r.apply(t,e);function a(t){uq(i,n,o,a,c,"next",t)}function c(t){uq(i,n,o,a,c,"throw",t)}a(void 0)})},o.send=function(t,e){return n.apply(this,arguments)},o.sendByReportService=function(t){var e,r=(e=t.metric_name,uM.indexOf(e)>-1);this.reportService.report(eC,t,r?cw.defaultReport:cw.htmlHttpReport,r?cO.P0:cO.P1)},o.report=function(t,e){return(void 0===e&&(e=!1),this.recordReportLog(t),e)?void this.send(eC,t):this.contextInitEndStatus?void this.sendByReportService(t):void this.cachedData.push(t)},o.contextInitEnd=function(){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var t={taskName:window.ttq._pf_tn,functionName:"monitor_plogin_context_init_end",start:performance.now()}}catch(t){}for(this.contextInitEndStatus=!0;this.cachedData.length;){var e=this.cachedData.shift();e&&null!=e.metric_name&&this.sendByReportService(e)}try{window.ttq&&window.ttq._ppf&&(t.end=performance.now(),window.ttq._ppf.push(t))}catch(t){}},o.info=function(t,e,r,n){if(void 0===e&&(e={}),void 0===r&&(r=!1),void 0===n&&(n=!1),this.reportSwitch()&&R("Monitor")||n)try{var o=this.assemblyBaseData(t,e);if(this.isRepeatLog(o))return;this.report(o,r)}catch(t){}},o.error=function(t,e,r,n){if(void 0===r&&(r={}),void 0===n&&(n=!1),this.reportSwitch()&&R("Monitor"))try{var o=this.assemblyBaseData(t,r);if(Object.assign(o.ext_json||{},{message:e.message,stack:e.stack}),this.isRepeatLog(o))return;this.report(o,n)}catch(t){}},o.isRepeatLog=function(t){var e=t.pixel_code,r=t.metric_name;if(!e||!r)return!1;var n=uj.some(function(t){return r.indexOf(t)>-1}),o=this.hasReportMap[e],i=o&&o.some(function(t){return t.metric_name===r});return n&&i},o.getReportInfo=function(t){var e=this.reporters.find(function(e){return e.getReporterId()===t});if(e)return e.reporterInfo;var r=m()._i[t];if(r)return r.info},o.assemblyBaseData=function(t,e){var r=e||{},n=r.pixelCode,o=r.extJSON,i=r.custom_name,a=r.custom_enum,c=r.app_name,u=r.latency,s=m(),l=this.env,f=this.platform,p=this.context,h=this.reporters,d=p.getAllData(),v=d.libraryInfo,g=d.pageInfo,y=d.adInfo,_=d.pageSign,E=d.enableAdTracking,b=p.getVariationId(),O=p.getVids(),I=this.legacy||[],S=y&&y.log_extra&&function(t){try{return JSON.parse(t)}catch(t){return{}}}(y.log_extra)||{},R=h.map(function(t){return t.getReporterId()}),N=n||k().pixelCode||this.pixelCode||this.reporters[0]&&this.reporters[0].getReporterId()||Object.keys(s._i)[0]||"",x=this.getReportInfo(N),L=I.length?I.includes(N)?"legacy-ttq":"ttq":this.lib,A=T(N)||this.partner||"non",P=E?i8.AUTHORIZED:i8.DENIED,C={metric_name:t,pixel_code:N,platform:f,app_name:(void 0===c?"":c)||(void 0===l?"":l),net_type:function(){try{var t=navigator&&(navigator.connection||navigator.mozConnection||navigator.webkitConnection);return t?t.effectiveType:""}catch(t){}return""}(),placement:S.placement||"non",lib:{lib_version:v&&v.version||"",ttq_name:L},in_iframe:Number(tV()),time_to_last_start:-1,time_to_navigation_start:-1,latency:void 0===u?0:u,page_url:g&&g.url||em().url,att_status:P,pageview_id:this.context.getPageViewId()||"",session_id:_&&_.sessionId||"",variation_id:b,vids:O,load_id:x&&x.loadId||"",ad_id:String(y.ad_id),creative_id:String(y.creative_id||S.creative_id),user_agent:w(),pixel_monitor_version:"v2",custom_name:i,custom_enum:a,partner:A,ext_json:{performance:[],pixel_list:R.toString(),ad_info_from:y.ad_info_from,pixel_api_conflict_flag:D()}};return o&&Object.assign(C.ext_json,o),C},o.initStart=function(t){this.info(a5.INIT_START,t)},o.initEnd=function(t){this.info(a5.INIT_END,t)},o.jsbInitStart=function(){this.info(a5.JSB_INIT_START)},o.jsbInitEnd=function(){this.info(a5.JSB_INIT_END)},o.beforeAdInfoInitStart=function(t){this.info(a5.BEFORE_AD_INFO_INIT_START,t)},o.adInfoInitStart=function(t){this.info(a5.AD_INFO_INIT_START,t)},o.adInfoInitEnd=function(t){this.info(a5.AD_INFO_INIT_END,t)},o.pluginInitStart=function(t){this.info(t+a5.PLUGIN_INIT_START)},o.pluginInitEnd=function(t){this.info(t+a5.PLUGIN_INIT_END)},e}(nA);function uB(t,e){return(uB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var uK=function(t,e){return function(r,n){e(r,n,t)}},uY=function(t){function e(e,r,n,o,i,a){var c,u=k();return(c=t.call(this,{pixelDetails:u,context:e,reporters:r,reportService:n,httpService:o,env:i,ttqOptions:a})||this).statusTimeline={},c}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,uB(e,t);var r=e.prototype;return r.getDurationTime=function(t){try{var e,r=(e=t.match(/_(start|end)$/))&&e[1];if(!r)return 0;var n=t.split("_").slice(0,-1).join("_"),o=this.statusTimeline[n];switch(!o&&(this.statusTimeline[n]={},o=this.statusTimeline[n]),r){case"start":o.start=o.start||B();break;case"end":if(!o.start)return -1;return o.end=o.end||B(),o.end-o.start}}catch(t){}return 0},r.assemblyBaseData=function(e,r){var n=t.prototype.assemblyBaseData.call(this,e,r),o=n.pixel_code,i=n.latency,a=this.getReportInfo(o),c=a&&a.loadStart;return Object.assign(n,{time_to_last_start:c?uF(c):-1,time_to_navigation_start:uF(),latency:i=i||this.getDurationTime(e)}),[a5.BEFORE_INIT,a5.IDENTIFY_INIT_END].includes(e)&&(n.ext_json=n.ext_json||{},n.ext_json.performance=uU(o,e===a5.IDENTIFY_INIT_END?"identify":"")),n},e}(uV);function uW(t){return void 0===t&&(t=!0),new Promise(function(e){try{var r="undefined"!=typeof window?window:void 0;if(r&&"function"==typeof r.requestIdleCallback)return void(t?r.requestIdleCallback(function(){return e(!0)},{timeout:1e3}):r.requestIdleCallback(function(t){try{var r="function"==typeof t.timeRemaining?t.timeRemaining():0;e(r>3)}catch(t){e(!0)}}));if("function"==typeof requestAnimationFrame){var n=performance.now();requestAnimationFrame(function(){var r=performance.now()-n;e(r<10||t)})}else setTimeout(function(){return e(!0)},0)}catch(t){P(a5.CUSTOM_ERROR,t,{custom_name:"delayidle_error",custom_enum:"catch_error"}),e(!0)}})}uY=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([ep(),uK(0,eh(d.CONTEXT)),uK(1,eh(d.TTQ_REPORTERS)),uK(2,eh(d.REPORT_SERVICE)),uK(3,eh(d.HTTP_SERVICE)),uK(4,eh(d.ENV)),uK(5,eh(d.TTQ_GLOBAL_OPTIONS))],uY);var uJ=["script","style","noscript","pre","code","svg","canvas","math","kbd","samp"];function uX(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function uQ(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}function uZ(){var t;return t=uz().mark(function t(e){var r,n,o,i,a,c,u,s,l,f,p,h,d,v,g,y,_,m,E,b,w,O,I,T,S,R,N,x,L,C,k,D,j,M,F,U,G,q,H,V,B,K,Y,W;return uz().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:var J,X;if(U=function(){var t,e=performance.now(),r=0;try{for(;rb){N++;continue}if(j(o))return L=!0,F+=performance.now()-e,{done:!1,stopped:!0,timeExceeded:!1,processed:r+1};if(performance.now()-e>=y)return F+=performance.now()-e,{done:!1,stopped:!1,timeExceeded:!0,processed:r+1}}}return F+=performance.now()-e,{done:!1,stopped:!1,timeExceeded:!1,processed:v}}catch(t){return F+=performance.now()-e,P(a5.CUSTOM_ERROR,t,{custom_name:"text_tree_walker_plugin",custom_enum:"run_one_batch_error"}),{done:!0,stopped:!1,timeExceeded:!1,processed:r}}},void 0===e&&(e={}),n=performance.now(),a=void 0===(i=(o=e).root)?document:i,c=o.patterns,s=void 0===(u=o.maxTotalHits)?60:u,f=void 0===(l=o.maxHitsPerPattern)?50:l,h=void 0===(p=o.ignoreTags)?uJ:p,v=void 0===(d=o.chunkSize)?500:d,y=void 0===(g=o.maxChunkMs)?8:g,m=void 0===(_=o.minTextLength)?5:_,b=void 0===(E=o.maxTextLength)?100:E,w=Array.from(new Set([].concat(h,uJ))),0!==(O=(Array.isArray(J=null==c?void 0:c.filter(function(t){return!!t}))&&J.length?J:[]).map(function(t){return{name:t.name,regex:t.regex,preCheck:"function"==typeof t.preCheck?t.preCheck:function(){return!0},normalize:"function"==typeof t.normalize?t.normalize:function(t){return t},hits:[],set:new Set,stoppedEarly:!1,resultDomDetail:[]}})).length){t.next=9;break}return X=n,I={textNodesVisited:0,skippedByTag:0,skippedByPrecheck:0,skippedByLength:0,totalFound:0,stoppedEarly:!1,collect_ms:0,processing_ms:0,total_ms:+(performance.now()-X).toFixed(2),chunks:0},t.abrupt("return",{patterns:[],totals:I});case 9:T=0,S=0,R=0,N=0,x=0,L=!1,C=0,k={skippedByLength:{v:0},skippedByPrecheck:{v:0},totalFound:{v:0}},D=function(t,e,r){var n,o=new Set(e.map(function(t){return t.toLowerCase()})),i=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,{acceptNode:function(t){if(t.nodeType===Node.ELEMENT_NODE){var e;return(e=t.tagName.toLowerCase(),o.has(e)||0)?(null==r||r(),NodeFilter.FILTER_REJECT):NodeFilter.FILTER_ACCEPT}return t.nodeType===Node.TEXT_NODE?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});return(n={next:function(){for(var t;t=i.nextNode();)if(t.nodeType===Node.TEXT_NODE){var e=t;if(!e.nodeValue||!e.nodeValue.trim())continue;return{value:e,done:!1}}return{value:void 0,done:!0}}})[Symbol.iterator]=function(){return this},n}(null!=(r=a.documentElement)?r:a,w,function(){S++}),j=function(t){var e=t.compiled,r=t.minTextLength,n=t.maxHitsPerPattern,o=t.maxTotalHits,i=t.counters;return function(t){try{if(i.totalFound.v>=o)return!0;var a=null!=(c=t.nodeValue)?c:"";if(!a)return!1;if(a.length=48&&n<=57&&e++}return e}(a):0,_=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return uX(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uX(t,e)}}(t))){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(d=_()).done;){var m=d.value;if(!m.stoppedEarly){if("email"===m.name){if(!v){i.skippedByPrecheck.v++;continue}}else if(m.name.includes("phone")&&!(g&&y>=7)){i.skippedByPrecheck.v++;continue}if(!m.preCheck(a)){i.skippedByPrecheck.v++;continue}var E=void 0;try{E=RegExp(m.regex,"ig").exec(a)}catch(t){return!0}if(E){var b={text:a,index:E.index,node:t},w=m.normalize(E[0],b);if(w&&(i.totalFound.v++,m.hits.push(w),m.set.add(w),t.parentElement&&m.resultDomDetail.push({id:null!=(s=null==(u=t.parentElement)?void 0:u.id)?s:"",className:null!=(f=null==(l=t.parentElement)?void 0:l.className)?f:"",tagName:null!=(h=null==(p=t.parentElement)?void 0:p.tagName)?h:""}),m.hits.length>=n&&(m.stoppedEarly=!0),i.totalFound.v>=o))return!0}}}return!1}catch(t){return P(a5.CUSTOM_ERROR,t,{custom_name:"text_tree_walker_plugin",custom_enum:"process_text_node_error"}),!1}}}({compiled:O,minTextLength:m,maxHitsPerPattern:f,maxTotalHits:s,counters:k}),M=performance.now(),F=0;case 22:if(C++,q=(G=U()).done,H=G.stopped,V=G.timeExceeded,B=G.processed,!(q||H)){t.next=27;break}return t.abrupt("break",48);case 27:if(!(B1||1===r&&"+"!==e[0])return null;var n=e.replace(u$,"").length;if(n<7||n>15)return null;var o=(e.match(/\(/g)||[]).length;if(o!==(e.match(/\)/g)||[]).length||o>0&&!/\(\d{1,4}\)/.test(e))return null;var i=e;if(i.startsWith("+")){var a=i.match(/^\+\d{1,3}/);if(!a)return null;i=i.slice(a[0].length)}var c=i.match(/^(?:\(\d{1,4}\)|\d{1,4})(?:[ -])?/);return(c&&(i=i.slice(c[0].length)),/^\d{5,12}$/.test(i))?e:null}},u2={name:"email",regex:"[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}",visibilityMode:"all",preCheck:function(t){return t.includes("@")}};function u3(){u3=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function d(){}var v={};u(v,i,function(){return this});var g=Object.getPrototypeOf,y=g&&g(g(I([])));y&&y!==e&&r.call(y,i)&&(v=y);var _=d.prototype=p.prototype=Object._ttq_create(v);function m(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function u6(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}function u5(t,e){return(u5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var u4=function(t,e){return function(r,n){e(r,n,t)}},u8=function(t){function e(e,r,n){var o;return(o=t.call(this,{name:"TextTreeWalkerPlugin",reporters:r,context:e})||this).context=e,o.reporters=r,o.lcpTriggered=!1,o.hasDoneFirstScan=!1,o.isScanning=!1,o.eventEmitter=n,o}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,u5(e,t);var r,n,o=e.prototype;return o.pageLcp=function(){var t=this;this.lcpTriggered||(this.lcpTriggered=!0,setTimeout(function(){try{t.getPIIFromTextNode(),t.hasDoneFirstScan=!0}catch(t){P(a5.CUSTOM_ERROR,t,{custom_name:"text_tree_walker_plugin",custom_enum:"get_pii_from_textnode"})}},2e3))},r=u3().mark(function t(){var e,r,n,o,i,a,c,u,s,l,f,p;return u3().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isScanning){t.next=2;break}return t.abrupt("return");case 2:if(this.activeReporter||(this.activeReporter=this.reporters.find(function(t){var e,r,n,o;return(null==(r=null==(e=t.plugins)?void 0:e.AutoAdvancedMatching)?void 0:r.auto_email)||(null==(o=null==(n=t.plugins)?void 0:n.AutoAdvancedMatching)?void 0:o.auto_phone_number)})),!(!tI||!tJ("74653890")||!this.activeReporter)){t.next=5;break}return t.abrupt("return");case 5:if(u=(c=null!=(r=null==(e=this.activeReporter.plugins)?void 0:e.AutoAdvancedMatching)?r:{}).auto_email,s=c.auto_phone_number,0!==[u&&u2,s&&u1].filter(Boolean).length){t.next=9;break}return t.abrupt("return");case 9:return this.isScanning=!0,t.next=12,function(t){return uZ.apply(this,arguments)}({root:document.body,ignoreTags:["a"],patterns:[u&&u2,!1],minTextLength:5,maxTextLength:1e3});case 12:if(f=null!=(o=null==(n=(l=t.sent.patterns).find(function(t){return"email"===t.name}))?void 0:n.values)?o:[],p=null!=(a=null==(i=l.find(function(t){return"phone_intl"===t.name}))?void 0:i.values)?a:[],this.isScanning=!1,0!==f.length||0!==p.length){t.next=19;break}return t.abrupt("return");case 19:this.sendToAutoAdvancedMatchingPlugin(f[0],p[0]);case 20:case"end":return t.stop()}},t,this)}),n=function(){var t=this,e=arguments;return new Promise(function(n,o){var i=r.apply(t,e);function a(t){u6(i,n,o,a,c,"next",t)}function c(t){u6(i,n,o,a,c,"throw",t)}a(void 0)})},o.getPIIFromTextNode=function(){return n.apply(this,arguments)},o.sendToAutoAdvancedMatchingPlugin=function(t,e){var r={source:h.TEXT,timestamp:B(),email:t,phone:e,detectedAt:"page_load"};this.eventEmitter.emit("PII_DETECTED",r)},o.pixelSend=function(t,e){if(this.hasDoneFirstScan&&"Pageview"===e){var r,n=null==(r=this.activeReporter)?void 0:r.getReporterId();n&&n===t&&this.getPIIFromTextNode()}},e}(nA);u8=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([ep(),u4(0,eh(d.CONTEXT)),u4(1,eh(d.TTQ_REPORTERS)),u4(2,eh(d.EVENT_EMITTER))],u8);var u9=["phone","telephone","cellphone"],u7=["email"],st="dataLayer",se={totalEnqueued:0,totalProcessedBatches:0,totalProcessedItems:0,totalTraverseErrors:0,totalFound:0,totalRevisits:0,totalDropped:0,lastBatchDurationMs:0,lastItemDurationMs:0,maxBatchDurationMs:0,maxItemDurationMs:0},sr=function(t,e){return t.toLowerCase().includes(e.toLowerCase())},sn=function(t){return void 0===t&&(t=u7),{kind:"email",matchKey:function(e){return t.some(function(t){return sr(e,t)})},acceptValue:function(){return!0}}},so=function(t){return void 0===t&&(t=u9),{kind:"phone",matchKey:function(e){return t.some(function(t){return sr(e,t)})},acceptValue:function(){return!0}}},si=function(t,e){void 0===t&&(t="dataLayer");var r=e.cdpRef,n=e.hookCdpPush,o=e.enqueueCurrentCdp,i=e.err,a=function(t){try{n(t),o()}catch(t){i("intercept_cdp_hook_error",t)}};try{var c=window[t],u=Array.isArray(c)?c:void 0;if(u)return r=u,a(r),r;return r=[],Object.defineProperty(window,t,{configurable:!0,enumerable:!0,get:function(){return r},set:function(t){Array.isArray(t)?(r=t,a(r)):i("intercept_cdp_set_non_array_error")}}),r}catch(t){return i("intercept_cdp_set_property_error",t),r}},sa=function(t,e){P(a5.CUSTOM_ERROR,e||Error(t),{custom_name:"cdp_visiter_plugin",custom_enum:t})},sc=function(t){try{return JSON.stringify(t)}catch(t){return"[unserializable]"}},su=function(t){return!!t&&("object"==typeof t||"function"==typeof t)},ss=function(t,e){void 0===e&&(e=120);try{if(null==t)return String(t);if("string"==typeof t){var r=t.trim();return r.length>e?r.slice(0,e)+"…":r}if("number"==typeof t||"boolean"==typeof t)return String(t);var n=sc(t);return n.length>e?n.slice(0,e)+"…":n}catch(t){return"[unserializable]"}};function sl(t){return null!=t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"0")&&Object.prototype.hasOwnProperty.call(t,"1")&&!Object.prototype.hasOwnProperty.call(t,"event")}function sf(t){try{var e=null==t?void 0:t["0"],r=null==t?void 0:t["1"],n=null==t?void 0:t["2"];if("event"===e&&"string"==typeof r)return Object.assign(Object.assign({event:r},n&&"object"==typeof n?n:{}),{_source:"_normalized_args"});if("string"==typeof r)return Object.assign(Object.assign({event:r},n&&"object"==typeof n?n:{}),{_source:"_normalized_args_loose"})}catch(t){}return t}function sp(t){try{if(Array.isArray(t))return t.map(function(t){return sl(t)?sf(t):t});if(sl(t))return sf(t);return t}catch(e){return t}}function sh(t){try{if(t&&"object"==typeof t&&"string"==typeof t.event)return t.event}catch(t){}}function sd(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return sv(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sv(t,e)}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function sv(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0;)try{var t=r.pop();t&&t()}catch(t){sa("unhook_function_error",t)}},isHooked:function(t){return!!t&&"object"==typeof t&&e.has(t)}}},sy=function(t){var e=null,r=!1,n=sg(t),o=function(t){void 0===t&&(t=st),e=si(t,{cdpRef:e,hookCdpPush:n.hookDataLayerPush,enqueueCurrentCdp:function(){n.enqueueCurrentDataLayer(e)},err:sa})};return{init:function(){if(!r){r=!0;try{o(st)}catch(t){sa("intercept_dataLayer",t)}}},rescan:function(){return n.enqueueCurrentDataLayer(e)},destroy:function(){n.unhook(),e=null,r=!1},getDataLayerRef:function(){return e}}};function s_(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t.extractors);!(c=u()).done;){var s=c.value;try{if(!s.matchKey(e)||s.acceptValue&&!s.acceptValue(r,n))continue;i(s.kind,e,r,n,o,a)}catch(t){sa("runExtractorsCatch"+s.kind+"Error",t)}}},c=function(e){var r=e.toLowerCase();return t.skipKeys.map(function(t){return t.toLowerCase()}).some(function(t){return r.includes(t)})};return{traverse:function e(n,i){var u=i.depth,s=i.path,l=void 0===s?"":s,f=i.source,p=i.budgetLimit,h=i.eventName;if(!(u>t.maxDepth)){var d=0;if(!(0>=p)&&(d++,!(!su(n)||su(n)&&n instanceof Element))){var v=r.get(n)||0;if(v>=3)return void o.totalRevisits++;if(r.set(n,v+1),!Array.isArray(n)&&"object"==typeof n&&t.maxObjectKeyLength&&t.maxObjectKeyLength>0&&Object.keys(n).length>t.maxObjectKeyLength)return;var g="string"==typeof(null==n?void 0:n.event)?n.event:void 0,y=h||g;if(Array.isArray(n)){try{for(var _=0;_=p);_++){if(su(n[_])){var m=n[_],E=r.get(m)||0;if(E>=3){o.totalRevisits++;continue}r.set(m,E+1)}e(n[_],{depth:u+1,path:l+"["+_+"]",source:f,budgetLimit:p,eventName:y})}}catch(t){o.totalTraverseErrors++,sa("traverse_array_error",t)}return}try{for(var b=0,w=Object.entries(n);b=p)break;su(T)&&e(T,{depth:u+1,path:S,source:f,budgetLimit:p,eventName:y})}}}catch(t){o.totalTraverseErrors++,sa("traverse_object_entries_error",t),A(a5.CUSTOM_INFO,{custom_name:"cdp_visiter_plugin",custom_enum:"traverse_object_entries_error_stats",extJSON:{message:JSON.stringify(Object.assign({path:l||""},o))}})}}}},getDedup:function(){return Array.from(n)},getStats:function(){return Object.assign(Object.assign({},o),{totalRevisits:o.totalRevisits})},resetVisited:function(t){void 0===t&&(t=!1),t?r=new WeakMap:o.totalRevisits>100&&(r=new WeakMap,o.totalRevisits=0)}}};function sE(){sE=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function d(){}var v={};u(v,i,function(){return this});var g=Object.getPrototypeOf,y=g&&g(g(I([])));y&&y!==e&&r.call(y,i)&&(v=y);var _=d.prototype=p.prototype=Object._ttq_create(v);function m(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function sb(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}var sw=function(t,e,r){var n,o,i=[],a=Object.assign({},se),c=!1,u=!1,s=0,l=0,f=function(){return"function"==typeof(null==performance?void 0:performance.now)?performance.now():B()},p=(n=sE().mark(function n(){var o,h,d,v,g,y,_,m,E,b,w;return sE().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!c){n.next=2;break}return n.abrupt("return");case 2:return c=!0,n.prev=3,n.next=6,uW(!1);case 6:if(n.sent){n.next=13;break}return o=Math.min(1e3,20*(1<=100)){n.next=27;break}return i.length=0,l=0,a.totalDropped=(a.totalDropped||0)+i.length,A(a5.CUSTOM_INFO,{custom_name:"cdp_visiter_plugin",custom_enum:"max_batch_count"}),e.resetVisited(!0),c=!1,n.abrupt("return");case 27:y=l%10==0,e.resetVisited(y);case 29:if(!i.length){n.next=43;break}if(!(f()-h>=t.maxMsPerBatch)){n.next=32;break}return n.abrupt("break",43);case 32:if(!(g>=d)){n.next=34;break}return n.abrupt("break",43);case 34:_=i.shift(),v++,m=f();try{e.traverse(_.node,{depth:0,path:_.path||"dataLayer.push",source:_.source||"push",budgetLimit:d,eventName:_.eventName})}catch(t){a.totalTraverseErrors+=1,sa("traverse_catch",t)}E=f()-m,a.lastItemDurationMs=E,E>a.maxItemDurationMs&&(a.maxItemDurationMs=E),n.next=29;break;case 43:b=f()-h,a.lastBatchDurationMs=b,b>a.maxBatchDurationMs&&(a.maxBatchDurationMs=b),a.totalProcessedBatches+=1,a.totalProcessedItems+=v,e.getStats&&(w=e.getStats())&&w.totalRevisits&&(a.totalRevisits=(a.totalRevisits||0)+w.totalRevisits),r(a),n.next=56;break;case 52:n.prev=52,n.t0=n.catch(3),sa("schedule_catch",n.t0),u=!0;case 56:return n.prev=56,c=!1,i.length&&!u&&p(),u=!1,n.finish(56);case 61:case"end":return n.stop()}},n,null,[[3,52,56,61]])}),o=function(){var t=this,e=arguments;return new Promise(function(r,o){var i=n.apply(t,e);function a(t){sb(i,r,o,a,c,"next",t)}function c(t){sb(i,r,o,a,c,"throw",t)}a(void 0)})},function(){return o.apply(this,arguments)});return{enqueue:function(e,r){"number"==typeof t.maxQueueSize&&t.maxQueueSize>0&&i.length>=t.maxQueueSize&&i.shift(),i.push(Object.assign({node:e},r)),a.totalEnqueued+=1,p()},getQueueSize:function(){return i.length},getStats:function(){return Object.freeze(Object.assign({},a))},updateStats:function(t){r(a=Object.assign(Object.assign({},a),t))}}},sO={maxDepth:3,maxNodesPerTraverse:1e3,maxObjectKeyLength:20,skipKeys:["html","snapshot","content","description","fullstate","raw","payload","products","catalog","recommendations","dom","tree","schema","source","trace","stack","contact","setting","fake","visitor","allow","md5"],extractors:[],onFound:function(){},maxNodePerBatch:100,maxMsPerBatch:8,maxQueueSize:1e3},sI=function(t){if(!t)return{init:function(){},rescan:function(){},getQueueSize:function(){return 0},getStats:function(){return Object.freeze(Object.assign({},se))},getFoundKeys:function(){return[]},destroy:function(){},config:{}};var e,r,n=Object.assign(Object.assign({},sO),{extractors:[sn(),so()]}),o=Object.assign(Object.assign(Object.assign({},n),t),{extractors:(null==t?void 0:t.extractors)||n.extractors,maxQueueSize:null!=(e=null==t?void 0:t.maxQueueSize)?e:n.maxQueueSize,maxObjectKeyLength:null!=(r=null==t?void 0:t.maxObjectKeyLength)?r:n.maxObjectKeyLength}),i=Object.assign({},se),a=sm(o,function(t){var e,r;try{null==(r=null==(e=o.extractors.find(function(e){return e.kind===t.kind}))?void 0:e.onHit)||r.call(e,t)}catch(t){sa("extractor_onHit_error",t)}try{o.onFound(t)}catch(t){sa("on_found_error",t)}}),c=sw(o,a,function(t){i=Object.assign(Object.assign({},i),t)}),u=sy(c.enqueue);return{init:u.init,rescan:u.rescan,getQueueSize:c.getQueueSize,getStats:c.getStats,getFoundKeys:function(){return a.getDedup()},destroy:function(){try{try{var t=Object.getOwnPropertyDescriptor(window,"dataLayer");if(t&&(t.get||t.set)&&t.configurable){delete window.dataLayer;var e=u.getDataLayerRef();void 0!==e&&(window.dataLayer=e)}}catch(t){}u.destroy()}catch(t){sa("destroy_error",t)}},config:o}};function sT(t,e){return(sT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var sS=function(t,e){return function(r,n){e(r,n,t)}},sR=function(t){function e(e,r,n){var o;return(o=t.call(this,{name:"CdpVisiterPlugin",reporters:r,context:e})||this).context=e,o.reporters=r,o.lcpTriggered=!1,o.scanner=null,o.eventEmitter=n,o}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,sT(e,t);var r=e.prototype;return r.pageLcp=function(){if(!this.lcpTriggered){this.lcpTriggered=!0;var t=this.reporters.some(function(t){var e;return(e=t.plugins)&&e.EnableDatalayerVisiter||!1});tI&&tT&&t&&this.tryProxyDataLayer()}},r.tryProxyDataLayer=function(){var t=this,e=function(){var t,e;return(null!=(e=null==(t=null==window?void 0:window.dataLayer)?void 0:t.length)?e:0)>0};if(e())return void this.extractDataLayerIfReady();setTimeout(function(){e()&&t.extractDataLayerIfReady()},3e3)},r.extractDataLayerIfReady=function(){try{this.extractDataLayer(),A(a5.CUSTOM_INFO,{custom_name:"cdp_visiter_plugin",custom_enum:"extract_dataLayer_start"})}catch(t){P(a5.CUSTOM_ERROR,t,{custom_name:"cdp_visiter_plugin",custom_enum:"extract_dataLayer_catch"})}},r.extractDataLayer=function(){var t,e,r=this,n=this.reporters.find(function(t){var e,r,n,o;return(null==(r=null==(e=t.plugins)?void 0:e.AutoAdvancedMatching)?void 0:r.auto_email)||(null==(o=null==(n=t.plugins)?void 0:n.AutoAdvancedMatching)?void 0:o.auto_phone_number)});if(n){var o,i,a=null!=(e=null==(t=n.plugins)?void 0:t.AutoAdvancedMatching)?e:{},c=a.auto_email,u=a.auto_phone_number,s=this.reporters.some(function(t){var e;return null==(e=t.plugins)?void 0:e.AutoConfigV2})||!1,l=sI({maxNodePerBatch:600,maxMsPerBatch:8,extractors:[c&&sn(["email"]),u&&so(["phone","telephone"]),s&&(o=["transaction_id"],{kind:"ga_data",matchKey:function(t){return o.some(function(e){return sr(t,e)})},acceptValue:function(){return!0}}),s&&(i=["id"],{kind:"ga_data",matchKey:function(t){return i.some(function(e){return sr(t,e)})},acceptValue:function(t,e){return null!=e&&!!e.includes("ecommerce.purchase.actionField.id")}})].filter(Boolean),onFound:function(t){if((null==t?void 0:t.kind)==="email"&&"string"==typeof(null==t?void 0:t.value)&&(t.value.includes("@")||64===t.value.length)||(null==t?void 0:t.kind)==="phone"&&"string"==typeof(null==t?void 0:t.value)&&t.value.length>0){var e=Object.assign(Object.assign({},"email"===t.kind&&{email:t.value}),"phone"===t.kind&&{phone:t.value});A(a5.CUSTOM_INFO,{custom_name:"cdp_visiter_plugin",custom_enum:"pii_data_detected",extJSON:{message:JSON.stringify({kind:t.kind,path:t.path})}}),r.sendToAutoAdvancedMatchingPlugin(e)}else(null==t?void 0:t.kind)==="ga_data"&&t.value&&(A(a5.CUSTOM_INFO,{custom_name:"cdp_visiter_plugin",custom_enum:"ga_data_detected",extJSON:{message:JSON.stringify({path:t.path,value:String(t.value)})}},!1,!0),r.context.setTransactionId(String(t.value)))}});this.scanner=l,this.scanner.init()}},r.sendToAutoAdvancedMatchingPlugin=function(t){var e=void 0===t?{}:t,r=e.email,n=e.phone;try{var o={source:h.DATA_LAYER,timestamp:B(),email:r,phone:n,detectedAt:"data_layer"};this.eventEmitter.emit("PII_DETECTED",o)}catch(t){}},e}(nA);function sN(t,e){return(sN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}sR=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([ep(),sS(0,eh(d.CONTEXT)),sS(1,eh(d.TTQ_REPORTERS)),sS(2,eh(d.EVENT_EMITTER))],sR);var sx=function(t,e){return function(r,n){e(r,n,t)}},sL=function(t){function e(e,r){var n;return(n=t.call(this,{name:"LPV",reporters:r,context:e})||this).pluginHasReportedESRecord={},n}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,sN(e,t);var r=e.prototype;return r.isLPVSwitchOn=function(t){return t.plugins&&!0===t.plugins.EnableLPV},r.buildLPVData=function(){return{trigger_source:"pixel_self"}},r.buildSecondJumpESData=function(){return{lpv_trigger_type:"second_jump",trigger_source:"pixel_self"}},r.buildDuration10sESData=function(){return{lpv_trigger_type:"duration_10s",trigger_source:"pixel_self"}},r.startEngagedSessionTimer=function(t,e){var r=this;void 0===e&&(e={});var n=null,o=0,i=!0,a=null==t?void 0:t.getCookieBasedSession().hasReportedES,c=function(){r.checkHasReportedES(e,t.getReporterId())||(r.pluginHasReportedESRecord[t.getReporterId()]=!0,t.track(rc,r.buildDuration10sESData(),{},cE.TRACK,cw.defaultReport),t.setCookieBasedSession(Object.assign(Object.assign({},null==e?void 0:e.pixelSession),{hasReportedES:1})))},u=function(e){if(!(a=null==t?void 0:t.getCookieBasedSession().hasReportedES)){n=setTimeout(c,1e3*e);var r=B();document.addEventListener("visibilitychange",function t(){"hidden"!==document.visibilityState||a||(n&&clearTimeout(n),i=!1,n=null,o+=Math.floor((B()-r)/1e3),document.removeEventListener("visibilitychange",t))})}};u(10),document.addEventListener("visibilitychange",function(){if(a=null==t?void 0:t.getCookieBasedSession().hasReportedES,"visible"===document.visibilityState&&!a&&!i){var e=10-o;e<=0?c():u(e)}}),window.addEventListener("beforeunload",function(){n&&clearTimeout(n)})},r.pixelSend=function(t,e,r,n,o){void 0===n&&(n={});try{if(o!==cE.TRACK||(null==(i=r._inspection)?void 0:i.trigger_source)==="pixel_self")return;var i,a,c=this.reporters.find(function(e){return e.getReporterId()===t});if(!c||!this.isLPVSwitchOn(c))return;var u=(null==(a=null==n?void 0:n.pixelSession)?void 0:a.isSessionStart)||!1,s=this.context.getPageInfo().referrer,l=this.context.getPageSign().etldPlusOne,f=this.context.getPageSign().pageIndex;u&&c.track("LandingPageView",this.buildLPVData(),{},cE.TRACK,cw.defaultReport),this.checkHasReportedES(n,t)||(!u&&(s&&l&&s.includes(l)||f&&f.index>0)?(c.track(rc,this.buildSecondJumpESData(),{},cE.TRACK,cw.defaultReport),c.setCookieBasedSession(Object.assign(Object.assign({},null==n?void 0:n.pixelSession),{hasReportedES:1}))):this.startEngagedSessionTimer(c,n))}catch(t){P(a5.CUSTOM_ERROR,t,{custom_name:"lpv_report"})}},r.checkHasReportedES=function(t,e){var r;return!!(this.pluginHasReportedESRecord[e]||(null==(r=null==t?void 0:t.pixelSession)?void 0:r.hasReportedES))},e}(nA);sL=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([ep(),sx(0,eh(d.CONTEXT)),sx(1,eh(d.TTQ_REPORTERS))],sL);var sA=[].concat([{identifier:d.MONITOR_PLUGIN,to:uY,name:"Monitor",required:!0},{identifier:d.AUTO_CONFIG_PLUGIN,to:ig,name:"AutoConfig",required:!1},{identifier:d.DIAGNOSTICS_CONSOLE_PLUGIN,to:iV,name:"DiagnosticsConsole",required:!1},{identifier:d.RUNTIME_MEASUREMENT_PLUGIN,to:uD,name:"RuntimeMeasurement",required:!1}],[{identifier:d.CALLBACK_PLUGIN,to:nk,name:"Callback"},{identifier:d.IDENTIFY_PLUGIN,to:n$,name:"Identify",required:!0},{identifier:d.EVENT_BUILDER_PLUGIN,to:iJ,name:"EventBuilder"},{identifier:d.ENRICH_IPV6_PLUGIN,to:iZ,name:"EnrichIpv6"},{identifier:d.PAGEDATA_PLUGIN,to:ux,name:"PageData"},{identifier:d.LPV_PLUGIN,to:sL,name:"LPV"},{identifier:d.TEXT_TREE_WALKER_PLUGIN,to:u8,name:"TextTreeWalker",required:!1},{identifier:d.CDP_VISITER_PLUGIN,to:sR,name:"CdpVisiter",required:!1}]),sP=/^[\w!#\$%&\'\*\+\/\=\?\^`\{\|\}~\-]+(:?\.[\w!#\$%&\'\*\+\/\=\?\^`\{\|\}~\-]+)*@(?:[a-z0-9](?:[a-z0-9\-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9\-]*[a-z0-9])?$/,sC=function(t){return"function"==typeof Element?t instanceof Element:t&&"object"==typeof t&&t.nodeType===Node.ELEMENT_NODE&&"string"==typeof t.nodeName},sk=function(t,e){var r=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector||null;return!!(null!==r&&r.call(t,e.join(",")))||t instanceof HTMLButtonElement&&!!e.includes("button[type='"+t.type+"']")},sD=function(t){if(!t||t===document.body)return!1;if(t.getBoundingClientRect&&"function"==typeof t.getBoundingClientRect){var e=t.getBoundingClientRect().height||t.offsetHeight||11;return e>10&&e<600}return!0},sj=function(t){return t.trim().toLowerCase()},sM=function(t,e){return!!t&&!!e&&t.indexOf(e)>=0},sF=function(t){return"string"==typeof t&&sP.test(t)},sU=function(t){if(!t)return null;for(var e=t.parentElement,r=t,n="";r;)(r=r.previousElementSibling)&&(r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement)&&(n=r.value,r=null);if(!n||"string"!=typeof n||!e||0>(e.innerText||e.textContent||"").indexOf("@"))return null;var o=n+"@"+t.value;return sF(o)?o:null},sG=function(t,e){var r=t.id,n=t.name,o=t.placeholder,i=void 0===o?"":o,a=t.value,c=void 0===a?"":a;return e.filter(function(t){return t.length>2?sM(n,t)||sM(r,t)||sM(i,t)||sM(c,t):n===t||r===t||i===t||c===t})};function sq(t,e){return(sq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var sH=function(t,e){return function(r,n){e(r,n,t)}},sV=function(t){function e(e,r,n,o){var i;return(i=t.call(this,{name:"AutoAdvancedMatching",reporters:r,context:e})||this).rateMS=1e3,i.lastTime=0,i.lastElement=null,i.matchHistory=[],i.eventEmitter=o,i.config=n.aam||{in_form:!0,selectors:{},exclude_selectors:[],phone_regex:"",phone_selectors:[],restricted_keywords:[]},i.phoneRegex=i.config.phone_regex?new RegExp(i.config.phone_regex):null,i.init(),i}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,sq(e,t);var r=e.prototype;return r.init=function(){var t=this;this.eventEmitter.on("PII_DETECTED",this.handlePIIDetected.bind(this),{}),document.addEventListener("click",function(e){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var r={taskName:window.ttq._pf_tn||"auto_advanced_matching_handler",functionName:window.ttq._pf_tn&&"auto_advanced_matching_handler",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="auto_advanced_matching_handler")}}catch(t){}try{var n=m()||[],o=e&&e.target&&e.target instanceof Node&&sC(e.target)?e.target:null;if(!o||!t.throttle(o))return;var i=t.getWrappingButton(o);if(!i)return;var a=t.getFormByButton(i);if(t.config.in_form&&!a)return;var c=t.getUserDataByForm(a);if(0===Object.keys(c).length)return;null==n||n.identify(Object.assign(c||{},{auto_trigger_type:t.getTriggerType(i,!!a),trigger_source:c.eb_email?h.RM_KEYWORDS:h.V1})),t.matchHistory.push(Object.assign({},c))}catch(t){P(a5.CUSTOM_ERROR,t,{custom_name:"advancedMatching"})}try{window.ttq&&window.ttq._ppf&&(r.end=performance.now(),window.ttq._ppf.push(r),"auto_advanced_matching_handler"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}},{capture:!0,once:!1,passive:!0})},r.handlePIIDetected=function(t){var e=t.email,r=t.phone,n=t.source,o=Object.assign(Object.assign({},e&&{eb_email:e}),r&&{eb_phone_number:r});if(0!==Object.keys(o).length){var i=e?"auto_email":"auto_phone_number",a=this.reporters.find(function(t){var e;return null==(e=t.plugins.AutoAdvancedMatching)?void 0:e[i]});null==a||a.identify(o,{trigger_source:n}),this.mergeTextPIIIntoMatchHistory(o,n)}},r.mergeTextPIIIntoMatchHistory=function(t,e){var r=Object.assign(Object.assign({},t),{auto_trigger_type:e,auto_timestamp:B()});this.matchHistory.push(r)},r.throttle=function(t){var e=!1;return(!this.lastElement||!this.lastTime||B()-this.lastTime>=this.rateMS||this.lastElement!==t)&&(e=!0),this.lastElement=t,this.lastTime=B(),e},r.getWrappingButton=function(t){if(!t||!sD(t)||(this.config.exclude_selectors||[]).length>0&&sk(t,this.config.exclude_selectors||[]))return null;if(sk(t,Object.keys(this.config.selectors||{})))return t;var e=t.parentNode;return e&&sC(e)?this.getWrappingButton(e):null},r.getFormByButton=function(t){if(t instanceof HTMLInputElement)return t.form;for(var e=t;"FORM"!==e.nodeName.toUpperCase();){var r=e.parentElement;if(!r)return null;e=r}return e},r.getUserDataByForm=function(t){for(var e={},r=t||document,n=r.querySelectorAll("input,textarea,select"),o=0;o0)return sF(n)?(A(a5.CUSTOM_INFO,{custom_name:"aam_hit_restricted",custom_enum:a.join(",")}),{eb_email:sj(n)}):null;if(sF(n))return{auto_email:sj(n)};var c=sU(t);if(c)return{auto_email:sj(c)};if("US"===((m()||[])._cc||"").toUpperCase()&&n.replace(/\D/g,"").length<10)return null;var u=!(this.config.phone_selectors.length>0)||"tel"===e||"tel"===r||sG(Object.assign(i,{placeholder:o}),this.config.phone_selectors).length>0,s=!this.phoneRegex||this.phoneRegex.test(n);return u&&s?{auto_phone_number:n}:null},r.getTriggerType=function(t,e){var r=this;try{var n=[];if(Object.keys(this.config.selectors).forEach(function(e){sk(t,[e])&&n.push(r.config.selectors[e])}),0===n.length)return"";return n.join(",")+"-"+ +!!e}catch(t){return""}},e}(nA);sV=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([ep(),sH(0,eh(d.CONTEXT)),sH(1,eh(d.TTQ_REPORTERS)),sH(2,eh(d.TTQ_GLOBAL_OPTIONS)),sH(3,eh(d.EVENT_EMITTER))],sV);var sB=function(t,e){t.isBound(d.AUTO_ADVANCED_MATCHING_PLUGIN)||t.bind(d.AUTO_ADVANCED_MATCHING_PLUGIN).to(sV).inSingletonScope(),lU(d.AUTO_ADVANCED_MATCHING_PLUGIN,"AutoAdvancedMatching")&&e.usePlugin(t.get(d.AUTO_ADVANCED_MATCHING_PLUGIN))};function sK(t,e){return(sK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var sY=function(t){function e(e){var r;return(r=t.call(this,e)||this).observers=new Set([]),r}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,sK(e,t);var r=e.prototype;return r.addObserver=function(t){this.observers.has(t)||this.observers.add(t)},r.removeObserver=function(t){this.observers.delete(t)},r.notifyObservers=function(t,e){this.observers.forEach(function(r){return r.call(e,t)})},e}(nx),sW="HistoryObserver";(i9||(i9={})).DYNAMIC_WEB_PAGEVIEW="dynamic_web_pageview";var sJ=["GoogleTagManagerClient","GoogleTagManagerServer"];function sX(t,e){var r=history[t];return function(){var t=Array.prototype.slice.call(arguments);r.apply(history,t),e()}}function sz(t){var e=t.options,r=t.plugins;return e&&!1!==e.historyObserver&&r&&r[sW]}function sQ(t,e){var r=em().url,n=t.context.getPageInfo().url;if(r!==n){var o,i=t.context.setPageInfo(r,n);i&&i.pageIndex&&eX(i.pageIndex),t2(cp.URL_CHANGE,r,n),t.reporters.filter((o=i9.DYNAMIC_WEB_PAGEVIEW,function(t){var e=t.plugins;return!!(sz(t)&&e[sW]&&e[sW][o])})).forEach(function(t){setTimeout(function(){t.page(e)})})}}function sZ(t,e){return(sZ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var s$=function(t,e){return function(r,n){e(r,n,t)}},s0=function(t){function e(e,r){var n;return(n=t.call(this,{name:sW,reporters:r,context:e})||this).enableListenSPAHistoryChange=!1,n.listenSPAHistoryChange=ti(function(){var t=function(){n.enableListenSPAHistoryChange&&n.notifyObservers({tf:cg.HISTORY_CHANGE})},e=function(){for(var e=arguments.length,r=Array(e),n=0;nt.length)&&(e=t.length);for(var r=0,n=Array(e);r=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([ep(),s$(0,eh(d.CONTEXT)),s$(1,eh(d.TTQ_REPORTERS))],s0);var s2=function(){function t(t){var e=this;this.configMap=new window[window.TiktokAnalyticsObject || "ttq"]._ttq_map,this.listeners=new window[window.TiktokAnalyticsObject || "ttq"]._ttq_map,this.listenedElementsSet=tI?new WeakSet:new Set,this.handleEvent=function(t){try{e.sendEvent(t)}catch(t){P(a5.CUSTOM_ERROR,t,{custom_name:e.getObserverType()+"Observer",custom_enum:"handleEvent_error"})}},this.eventEmitter=t,this.configMap=new window[window.TiktokAnalyticsObject || "ttq"]._ttq_map}var e=t.prototype;return e.setupListeners=function(t){var e=this;try{t.forEach(function(t){"window"===t.environment&&t.listenEventTypes.forEach(function(r){Array.isArray(t.target)?document.querySelectorAll(t.target.join(", ")).forEach(function(t){e.bindListener(t,r)}):e.bindListener(t.target,r)})})}catch(t){P(a5.CUSTOM_ERROR,t,{custom_name:this.getObserverType()+"Observer",custom_enum:"setupListeners_error"})}},e.teardownListeners=function(t){var e=this;if(t){var r=this.configMap.get(t);r&&r.length&&r.forEach(function(r){var n,o=r.target;if(Array.isArray(o)){var i=o.join(", ");n=document.querySelectorAll(i)}else n=[o];n.forEach(function(t){for(var n,o=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return s1(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s1(t,e)}}(t))){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r.listenEventTypes);!(n=o()).done;){var i=n.value,a=e.listeners.get(i)||e.handleEvent;t.removeEventListener(i,a),e.listenedElementsSet.delete(t),e.listeners.delete(i)}}),e.configMap.delete(t)})}},e.updateConfig=function(t){if(t){var e;if(this.validateConfig(t)){var r="append"===t.mode&&null!=(e=this.configMap.get(t.pluginName))?e:[];"append"!==t.mode&&this.teardownListeners(t.pluginName),r.push(t),this.configMap.set(t.pluginName,r),this.setupListeners([t])}}},e.sendEvent=function(t){this.eventEmitter.emit(t.type,t)},e.validateConfig=function(t){return!!t&&!!t.observerType&&!!t.listenEventTypes&&!!t.pluginName},e.getConfigMap=function(){return this.configMap},t}();function s3(t,e){return(s3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var s6=function(t){function e(e){return t.call(this,e)||this}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,s3(e,t);var r=e.prototype;return r.bindListener=function(t,e){!this.listenedElementsSet.has(t)&&(this.listenedElementsSet.add(t),t instanceof Element&&tg.some(function(e){return t.matches(e)})||t.addEventListener(e,this.handleEvent,{capture:!0,passive:!0}))},r.getObserverType=function(){return"click"},e}(s2);function s5(t,e){return(s5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var s4=function(t){function e(e){return t.call(this,e)||this}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,s5(e,t);var r=e.prototype;return r.bindListener=function(t,e){var r=this;if(!this.listenedElementsSet.has(t)){this.listenedElementsSet.add(t);var n=J(function(t){return r.handleEvent(t)},200,{trailing:!0});t.addEventListener(e,n,{passive:!0,capture:!0}),this.listeners.set(e,n)}},r.getObserverType=function(){return"scroll"},e}(s2);function s8(t,e){return(s8=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var s9=function(t,e){return function(r,n){e(r,n,t)}},s7=function(t){function e(e,r,n){var o;return(o=t.call(this,{name:"INTERACTION_OBSERVER",reporters:r,context:e})||this).observersMap=new window[window.TiktokAnalyticsObject || "ttq"]._ttq_map([]),o.eventEmitter=n,o.eventEmitter.on(ch.UPDATE_CONFIG,o.updateObserverConfig.bind(function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(o)),{}),o}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,s8(e,t);var r=e.prototype;return r.registerObserver=function(t){var e;switch(t){case"click":e=new s6(this.eventEmitter);break;case"scroll":e=new s4(this.eventEmitter);break;default:return}this.observersMap.set(t,e)},r.unregisterObserver=function(t){var e=this.observersMap.get(t);e&&(e.getConfigMap().forEach(function(t,r){e.teardownListeners(r)}),this.observersMap.delete(t))},r.destroyAll=function(){var t=this;this.observersMap.forEach(function(e,r){t.unregisterObserver(r)}),this.observersMap.clear()},r.updateObserverConfig=function(t){var e=t.observerType,r=this.observersMap.get(e);r||(this.registerObserver(e),r=this.observersMap.get(e)),r&&r.updateConfig(t)},e}(sY);s7=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([ep(),s9(0,eh(d.CONTEXT)),s9(1,eh(d.TTQ_REPORTERS)),s9(2,eh(d.EVENT_EMITTER))],s7);var lt=[{identifier:d.HISTORY_OBSERVER,to:s0,name:"HistoryObserver"},{identifier:d.INTERACTION_OBSERVER,to:s7,name:"InteractionObserver"}];function le(){le=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function d(){}var v={};u(v,i,function(){return this});var g=Object.getPrototypeOf,y=g&&g(g(I([])));y&&y!==e&&r.call(y,i)&&(v=y);var _=d.prototype=p.prototype=Object._ttq_create(v);function m(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function lr(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return ln(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ln(t,e)}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ln(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0&&la(t[r]);)r--;for(;n=n.end?(r.push(n),n=i):i.end>n.end&&(n={start:n.start,end:i.end,value:i.value})}return r.push(n),r}var lf=function(){function t(){}var e=t.prototype;return e.decompose=function(t){for(var e=[],r=0,n=0,o=t.length,i="text",a="",c="";n"===u&&(r=this.parseTag(a,e,r),i="text",a="")),n++}return r=this.processTextBuffer(c,e,r),a&&(r=this.parseTag(a,e,r)),e},e.processTextBuffer=function(t,e,r){var n=t.trim();if(!n)return r;if(n.length<=30){var o={type:"text",value:n,position:r++};return e.push(o),r}return li(n,30).forEach(function(t){var n={type:"text",value:t,position:r++};e.push(n)}),r},e.parseTag=function(t,e,r){var n=r;if(!t)return n;if(t.startsWith("30?li(t,30).forEach(function(t){n.push({type:"array-item",key:a,value:t,position:o++})}):n.push({type:"array-item",key:a,value:t,position:o++})}):null!==t&&"object"==typeof t&&Object.keys(t).forEach(function(i){var a=e?e+"."+i:i,c=t[i];if(null!==c&&"object"==typeof c){var u=r.decompose(c,a);n.push.apply(n,u)}else"string"===ls(c)&&c.length>30?li(c,30).forEach(function(t){n.push({type:"object-property",key:a,value:t,name:i,position:o++})}):n.push({type:"object-property",key:a,value:c,name:i,position:o++})}),n},t}();function lh(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(r=o()).done;){var i=r.value;switch(i.type){case"tagStart":n+="<"+i.name;break;case"attribute":n+=" "+i.key+'="'+i.redactedValue+'"';break;case"tagStartClose":n+=">";break;case"text":n+=i.redactedValue;break;case"tagEnd":n+=""}}return n},t}(),lv=function(){function t(){}return t.prototype.recompose=function(t,e){var r;return r=Array.isArray(e)?[]:{},0===t.length||t.forEach(function(t){var e=t.key,n=t.redactedValue,o=t.type;if(e){var i=e.split("."),a=r;i.forEach(function(t,e){var r=e===i.length-1,c=i[e+1],u="array-item"===o||!r&&void 0!==c&&!isNaN(Number(c));void 0===a[t]&&(a[t]=u?[]:{}),r?a[t]&&"string"==typeof a[t]?a[t]+=n:a[t]=n:a=a[t]})}}),r},t}();function lg(){lg=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function d(){}var v={};u(v,i,function(){return this});var g=Object.getPrototypeOf,y=g&&g(g(I([])));y&&y!==e&&r.call(y,i)&&(v=y);var _=d.prototype=p.prototype=Object._ttq_create(v);function m(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var ly=function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(a,c)}u((n=n.apply(t,e||[])).next())})},l_=function(){function t(t){this.matcher=t}var e=t.prototype;return e.redactSync=function(t,e){var r=this,n=ll(this.matcher.match(t));return e(function(t,e,r){if(!e||0===e.length)return t;for(var n,o="",i=0,a=lr(e);!(n=a()).done;){var c=n.value;c.start>i&&(o+=t.slice(i,c.start)),o+=r(c),i=c.end}return ii&&(o+=t.slice(i,u.start)),n.next=10,r(u);case 10:s=n.sent,o+=s,i=u.end;case 13:n.next=5;break;case 15:return i=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function lE(t,e){return(lE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var lb=function(t){function e(e,r){var n;return void 0===r&&(r=cS.DEFAULT),(n=t.call(this,e)||this).tag=r,n}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,lE(e,t);var r=e.prototype;return r.processMatchSync=function(){return lu(this.tag)},r.processMatchAsync=function(){var t,e,r,n;return t=this,e=void 0,r=void 0,n=lm().mark(function t(){return lm().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",lu(this.tag));case 1:case"end":return t.stop()}},t,this)}),new(r||(r=Promise))(function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(a,c)}u((n=n.apply(t,e||[])).next())})},e}(l_);function lw(){lw=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function d(){}var v={};u(v,i,function(){return this});var g=Object.getPrototypeOf,y=g&&g(g(I([])));y&&y!==e&&r.call(y,i)&&(v=y);var _=d.prototype=p.prototype=Object._ttq_create(v);function m(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function lO(t,e){return(lO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var lI=function(t){function e(e,r,n){var o;return(o=t.call(this,e)||this).hashSync=r,o.hashAsync=n,o}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,lO(e,t);var r=e.prototype;return r.processMatchSync=function(t){return this.hashSync(t)},r.processMatchAsync=function(t){var e,r,n,o;return e=this,r=void 0,n=void 0,o=lw().mark(function e(){return lw().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.hashAsync?this.hashAsync(t):function(t){return lo(this,void 0,void 0,le().mark(function e(){var r,n;return le().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=new TextEncoder().encode(t),e.next=4,crypto.subtle.digest("SHA-256",r);case 4:return n=Array.from(new Uint8Array(e.sent)).map(function(t){return t.toString(16).padStart(2,"0")}).join(""),e.abrupt("return",n);case 8:case"end":return e.stop()}},e)}))}(t));case 1:case"end":return e.stop()}},e,this)}),new(n||(n=Promise))(function(t,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function c(t){try{u(o.throw(t))}catch(t){i(t)}}function u(e){var r;e.done?t(e.value):((r=e.value)instanceof n?r:new n(function(t){t(r)})).then(a,c)}u((o=o.apply(e,r||[])).next())})},e}(l_);function lT(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(this.patterns);!(r=o()).done;){var i=r.value;try{i.lastIndex=0}catch(t){}for(var a=void 0,c=0;null!==(a=i.exec(t))&&c++=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}lR.MAX_LOOP_COUNT=5;var lx=function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(a,c)}u((n=n.apply(t,e||[])).next())})},lL=function(){function t(){this.pipelines={replace:[],encrypt:[]},this.htmlDecomposer=new lf,this.elementDecomposer=new lp,this.htmlRecomposer=new ld,this.elementRecomposer=new lv}var e=t.prototype;return e.registerReplaceRedactor=function(t){if("function"!=typeof t.redactSync||"function"!=typeof t.redactAsync)throw Error("Redactor must implement redactSync and redactAsync");this.pipelines.replace.push(t)},e.registerEncryptRedactor=function(t){if("function"!=typeof t.redactSync||"function"!=typeof t.redactAsync)throw Error("Redactor must implement redactSync and redactAsync");this.pipelines.encrypt.push(t)},e.createReplaceRedactor=function(t){var e;return new lb(new lR({keywords:null==t?void 0:t.keywords,regexArray:null==t?void 0:t.regexArray}),null!=(e=null==t?void 0:t.tag)?e:cS.DEFAULT)},e.createEncryptionRedactor=function(t,e,r){return new lI(new lR({keywords:null==t?void 0:t.keywords,regexArray:null==t?void 0:t.regexArray}),e,r)},e.dispatchSync=function(t,e,r){var n=this,o=t[e];if(!o)return r;var i=function(o){return void 0===o&&(o=r),n.dispatchSync(t,e+1,o)};try{return o.redactSync(r,i)}catch(t){return i(r)}},e.dispatchAsync=function(t,e,r){return lx(this,void 0,void 0,lN().mark(function n(){var o,i,a=this;return lN().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(o=t[e]){n.next=3;break}return n.abrupt("return",r);case 3:return i=function(n){return void 0===n&&(n=r),lx(a,void 0,void 0,lN().mark(function r(){return lN().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this.dispatchAsync(t,e+1,n));case 1:case"end":return r.stop()}},r,this)}))},n.prev=4,n.next=7,o.redactAsync(r,i);case 7:case 14:return n.abrupt("return",n.sent);case 10:return n.prev=10,n.t0=n.catch(4),n.next=14,i(r);case 15:case"end":return n.stop()}},n,null,[[4,10]])}))},e.selectEngines=function(t){return"string"==typeof t?{decomposer:this.htmlDecomposer,recomposer:this.htmlRecomposer}:{decomposer:this.elementDecomposer,recomposer:this.elementRecomposer}},e.processSync=function(t,e,r){var n=this;try{if("string"!=typeof t&&"object"!=typeof t||"object"==typeof t&&null===t)return{originalInput:t,success:!1,error:Error("Input must be string or object")};var o=this.selectEngines(t),i=o.decomposer,a=o.recomposer,c=i.decompose(t),u="encrypt"==e?this.pipelines.encrypt:this.pipelines.replace,s=c.map(function(t){if(r&&t.name&&r.has(t.name))return Object.assign(Object.assign({},t),{redactedValue:null!=(e=t.value)?e:""});if(null==(o=t.type)?void 0:o.includes("tag"))return Object.assign(Object.assign({},t),{redactedValue:""});var e,o,i,a=null!=(i=t.value)?i:"",c=n.dispatchSync(u,0,a);return Object.assign(Object.assign({},t),{redactedValue:c})}),l=a.recompose(s,t);return{originalInput:t,success:!0,redactedOutput:l}}catch(e){return{originalInput:t,success:!1,error:e}}},e.processAsync=function(t,e,r){return lx(this,void 0,void 0,lN().mark(function n(){var o,i,a,c,u,s,l,f=this;return lN().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,("string"==typeof t||"object"==typeof t)&&("object"!=typeof t||null!==t)){n.next=3;break}return n.abrupt("return",{originalInput:t,success:!1,error:Error("Input must be string or object")});case 3:return i=(o=this.selectEngines(t)).decomposer,a=o.recomposer,c=i.decompose(t),u="encrypt"==e?this.pipelines.encrypt:this.pipelines.replace,n.next=8,Promise.all(c.map(function(t){return lx(f,void 0,void 0,lN().mark(function e(){var n,o,i,a,c;return lN().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r&&t.name&&r.has(t.name))){e.next=2;break}return e.abrupt("return",Object.assign(Object.assign({},t),{redactedValue:null!=(n=t.value)?n:""}));case 2:if(!(null==(o=t.type)?void 0:o.includes("tag"))){e.next=4;break}return e.abrupt("return",Object.assign(Object.assign({},t),{redactedValue:""}));case 4:return a=null!=(i=t.value)?i:"",e.next=7,this.dispatchAsync(u,0,a);case 7:return c=e.sent,e.abrupt("return",Object.assign(Object.assign({},t),{redactedValue:c}));case 9:case"end":return e.stop()}},e,this)}))}));case 8:return s=n.sent,l=a.recompose(s,t),n.abrupt("return",{originalInput:t,success:!0,redactedOutput:l});case 13:return n.prev=13,n.t0=n.catch(0),n.abrupt("return",{originalInput:t,success:!1,error:n.t0});case 16:case"end":return n.stop()}},n,this,[[0,13]])}))},t}(),lA=function(){function t(){this.name="SensitiveRedactor",this.engine=new lL}var e=t.prototype;return e.registerReplaceRedactor=function(t){var e=this.engine.createReplaceRedactor(t);return this.engine.registerReplaceRedactor(e),this},e.registerEncryptRedactor=function(t,e,r){var n=this.engine.createEncryptionRedactor(t,e,r);return this.engine.registerEncryptRedactor(n),this},e.processSync=function(t,e,r){return void 0===e&&(e="replace"),this.engine.processSync(t,e,r)},e.processAsync=function(t,e,r){return void 0===e&&(e="replace"),this.engine.processAsync(t,e,r)},t}(),lP=m(),lC=(null==lP?void 0:lP._container)||new ef,lk=(null==lP?void 0:lP._container)?c_.REBIND:c_.BIND;tN();var lD=lC[lk](d.ENV),lj=lC[lk](tR.SignalType);lC[lk](tR.ID),lC[lk](tR.Type),lC[lk](tR.Options),lC[lk](tR.Plugins),lC[lk](tR.Rules),lC[lk](tR.Info);var lM=lC[lk](tR.WebLibraryInfo),lF=lC[lk](d.TTQ_GLOBAL_OPTIONS);try{if(!lC.get(d.TTQ_GLOBAL_OPTIONS))throw Error("")}catch(t){lF.toConstantValue({})}function lU(t,e){return!!(lP&&lP._mounted&&!lP.getPlugin(e)&&lC.isBound(t))}var lG=function(t,e){var r=tx();lM.toConstantValue({name:"pixel.js",version:"2.2.1",options:void 0}),lD.toConstantValue(e),lj.toConstantValue(r)},lq=function(t){(null==t?void 0:t._container)||(lC.bind(d.TTQ).to(rV).inSingletonScope(),lC.bind(d.CONTEXT).to(rX).inSingletonScope(),lC.bind(d.REPORTER).to(rk),lC.bind(d.TTQ_REPORTERS).toConstantValue([]),lC.bind(d.REPORT_SERVICE).to(nn).inSingletonScope(),lC.bind(d.AD_SERVICE).to(na).inSingletonScope(),lC.bind(d.APP_SERVICE).to(ns).inSingletonScope(),lC.bind(d.BRIDGE_SERVICE).to(nv).inSingletonScope(),lC.bind(d.HTTP_SERVICE).to(n_).inSingletonScope(),lC.bind(tR.IsOnsitePage).toConstantValue({value:!1}),lC.bind(d.COOKIE_SERVICE).to(nb).inSingletonScope(),lC.bind(d.CONSENT_SERVICE).to(nI).inSingletonScope(),lC.bind(d.EVENT_EMITTER).to(rs).inSingletonScope(),lC.bind(d.INTER_ID_SERVICE).to(nN).inSingletonScope(),lC.bind(d.SENSITIVE_REDACTOR).to(lA).inSingletonScope()),t&&!t._container&&(t._container=lC)},lH=function(){sA.forEach(function(t){var e=t.to,r=t.name,n=void 0===r?"":r,o=t.required,i=t.identifier;(void 0!==o&&o||R(n))&&!lC.isBound(i)&&lC.bind(i).to(e).inSingletonScope(),lU(i,n)&&lP.usePlugin(lC.get(i))})},lV=function(){lt.forEach(function(t){var e=t.to,r=t.name,n=t.identifier;R(void 0===r?"":r)&&!lC.isBound(n)&&lC.bind(n).to(e).inSingletonScope()})},lB=function(t,e,r){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var n={taskName:window.ttq._pf_tn,functionName:"initAllModule",start:performance.now()}}catch(t){}lG(t,r),en(e,t),lV(),lq(t),lH(),sB(e,t);try{window.ttq&&window.ttq._ppf&&(n.end=performance.now(),window.ttq._ppf.push(n))}catch(t){}},lK=function(){try{var t=lC.get(d.MONITOR_PLUGIN);if(t)return t;return null}catch(t){return null}},lY=function(){try{lC.get(d.EVENT_EMITTER)}catch(t){P(a5.CUSTOM_ERROR,t,{custom_name:"emitterFactory"})}},lW=function(){try{lC.get(d.SENSITIVE_REDACTOR)}catch(t){P(a5.CUSTOM_ERROR,t,{custom_name:"sensitiveRedactorFactory"})}},lJ=function(){lY(),lW()},lX=function(t){var e=this.constructor;return this.then(function(r){return e.resolve(t()).then(function(){return r})},function(r){return e.resolve(t()).then(function(){return e.reject(r)})})},lz=function(t){return new this(function(e,r){if(!(t&&void 0!==t.length))return r(TypeError(typeof t+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var n=Array.prototype.slice.call(t);if(0===n.length)return e([]);for(var o=n.length,i=0;i0&&at&&new at(t.getReporterId(),t.rules)});try{window.ttq&&window.ttq._ppf&&(u.end=performance.now(),window.ttq._ppf.push(u))}catch(t){}try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e),"init"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}}}()}catch(t){P(a5.INIT_ERROR,t)}}()}();